check path transition after payment
This commit is contained in:
parent
58a240a9f2
commit
2e66e5807a
1 changed files with 1 additions and 1 deletions
|
|
@ -41,6 +41,7 @@ feature Registration do
|
||||||
|
|
||||||
click_button 'Charge Card'
|
click_button 'Charge Card'
|
||||||
|
|
||||||
|
expect(current_path).to eq(conference_conference_registrations_path(conference.short_title))
|
||||||
payment = Payment.where(user_id: participant.id, conference_id: conference.id).first
|
payment = Payment.where(user_id: participant.id, conference_id: conference.id).first
|
||||||
expect(payment.amount).to eq(20)
|
expect(payment.amount).to eq(20)
|
||||||
expect(payment.status).to eq(1)
|
expect(payment.status).to eq(1)
|
||||||
|
|
@ -48,7 +49,6 @@ feature Registration do
|
||||||
expect(payment.first_name).to eq('bar')
|
expect(payment.first_name).to eq('bar')
|
||||||
expect(payment.last4).not_to be_empty
|
expect(payment.last4).not_to be_empty
|
||||||
expect(payment.authorization_code).not_to be_empty
|
expect(payment.authorization_code).not_to be_empty
|
||||||
expect(current_path).to eq(conference_conference_registrations_path(conference.short_title))
|
|
||||||
expect(flash).
|
expect(flash).
|
||||||
to eq('Thanks! You have purchased your tickets successfully.')
|
to eq('Thanks! You have purchased your tickets successfully.')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue