repair tests

This commit is contained in:
Rishabh Saxena 2016-07-22 01:15:22 +05:30
parent 851b467235
commit 4d4736f042
2 changed files with 3 additions and 1 deletions

View file

@ -21,5 +21,5 @@
= 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'
.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"

View file

@ -41,6 +41,7 @@ feature Registration do
click_button 'Charge Card'
expect(Payment.count).to eq(0)
expect(current_path).to eq(conference_conference_registration_path(conference.short_title))
end
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'
expect(Payment.count).to eq(0)
expect(current_path).to eq(conference_conference_registration_path(conference.short_title))
end
scenario 'purchases and pays for a ticket successfully', feature: true, js: true do