mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +02:00
Fix failing test in NewInvoicePayment
Probably with the upgrade of Rails from 4.2 to 5 the ids are no longer generated automatically in the views, but the functionality still worked as designed previously.
This commit is contained in:
parent
6597e72bff
commit
09ac0d30aa
2 changed files with 3 additions and 3 deletions
|
@ -3,5 +3,5 @@
|
|||
|
||||
- locals[:payment_channels].each do |meth|
|
||||
- meth = meth.strip
|
||||
= link_to registrar_payment_with_path(meth, invoice_id: params[:id]) do
|
||||
= link_to registrar_payment_with_path(meth, invoice_id: params[:id]), id: meth do
|
||||
= image_tag("#{meth}.png")
|
||||
|
|
|
@ -26,7 +26,7 @@ class NewInvoicePaymentTest < ApplicationSystemTestCase
|
|||
|
||||
def test_create_new_SEB_payment
|
||||
create_invoice_and_visit_its_page
|
||||
click_link_or_button 'Seb'
|
||||
click_link_or_button 'seb'
|
||||
form = page.find('form')
|
||||
assert_equal('https://www.seb.ee/cgi-bin/dv.sh/ipank.r', form['action'])
|
||||
assert_equal('post', form['method'])
|
||||
|
@ -35,7 +35,7 @@ class NewInvoicePaymentTest < ApplicationSystemTestCase
|
|||
|
||||
def test_create_new_Every_Pay_payment
|
||||
create_invoice_and_visit_its_page
|
||||
click_link_or_button 'Every pay'
|
||||
click_link_or_button 'every_pay'
|
||||
expected_hmac_fields = 'account_id,amount,api_username,callback_url,' +
|
||||
'customer_url,hmac_fields,nonce,order_reference,timestamp,transaction_type'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue