Remove variable fields from tests

This commit is contained in:
Maciej Szlosarczyk 2018-04-20 14:50:14 +03:00
parent e066b1d246
commit 663214ee49
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
2 changed files with 1 additions and 2 deletions

View file

@ -33,6 +33,6 @@ class NewInvoicePaymentTest < ActionDispatch::IntegrationTest
assert_equal('https://igw-demo.every-pay.com/transactions/', form['action'])
assert_equal('post', form['method'])
assert_equal(expected_hmac_fields, form.find_by_id('hmac_fields', visible: false).value)
assert_equal('240.0', form.find_by_id('amount', visible: false).value)
assert_equal('240.00', form.find_by_id('amount', visible: false).value)
end
end

View file

@ -50,7 +50,6 @@ class EveryPayTest < ActiveSupport::TestCase
account_id: "EUR3D1",
timestamp: "1522542600",
amount: "12.00",
order_reference: "Order nr. 1",
transaction_type: "charge",
hmac_fields: "account_id,amount,api_username,callback_url,customer_url,hmac_fields,nonce,order_reference,timestamp,transaction_type"
}