repair tests
This commit is contained in:
parent
851b467235
commit
4d4736f042
2 changed files with 3 additions and 1 deletions
|
|
@ -21,5 +21,5 @@
|
||||||
= f.text_field :card_verification_value, class: "form-control", placeholder: "XXX", id: "card_verification_value"
|
= f.text_field :card_verification_value, class: "form-control", placeholder: "XXX", id: "card_verification_value"
|
||||||
= f.number_field :amount, value: @total_amount_to_pay, class: "form-control", type: 'hidden'
|
= f.number_field :amount, value: @total_amount_to_pay, class: "form-control", type: 'hidden'
|
||||||
.form-group.text-center
|
.form-group.text-center
|
||||||
= f.submit "Pay #{number_to_currency @total_amount_to_pay, unit: @total_amount_to_pay.symbol}", class: "btn btn-primary"
|
= f.submit "Pay #{number_to_currency @total_amount_to_pay, unit: @total_amount_to_pay.symbol}", class: "btn btn-primary", id: "Charge Card"
|
||||||
= link_to "Cancel", conference_conference_registration_path, class: "btn btn-danger"
|
= link_to "Cancel", conference_conference_registration_path, class: "btn btn-danger"
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@ feature Registration do
|
||||||
click_button 'Charge Card'
|
click_button 'Charge Card'
|
||||||
|
|
||||||
expect(Payment.count).to eq(0)
|
expect(Payment.count).to eq(0)
|
||||||
|
expect(current_path).to eq(conference_conference_registration_path(conference.short_title))
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'purchases and pays for a ticket, with card producing a transaction failure', feature: true, js: true do
|
scenario 'purchases and pays for a ticket, with card producing a transaction failure', feature: true, js: true do
|
||||||
|
|
@ -68,6 +69,7 @@ feature Registration do
|
||||||
click_button 'Charge Card'
|
click_button 'Charge Card'
|
||||||
|
|
||||||
expect(Payment.count).to eq(0)
|
expect(Payment.count).to eq(0)
|
||||||
|
expect(current_path).to eq(conference_conference_registration_path(conference.short_title))
|
||||||
end
|
end
|
||||||
|
|
||||||
scenario 'purchases and pays for a ticket successfully', feature: true, js: true do
|
scenario 'purchases and pays for a ticket successfully', feature: true, js: true do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue