Add tests for Payments::BankLink

This commit is contained in:
Maciej Szlosarczyk 2018-04-22 17:24:15 +03:00
parent 663214ee49
commit 5dea92c0d8
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
12 changed files with 294 additions and 150 deletions

View file

@ -59,9 +59,9 @@ class EveryPayTest < ActiveSupport::TestCase
end
end
def test_valid_response?
assert(@every_pay.valid_response?)
refute(@other_pay.valid_response?)
def test_valid_response_from_intermediary?
assert(@every_pay.valid_response_from_intermediary?)
refute(@other_pay.valid_response_from_intermediary?)
end
def test_settled_payment?
@ -72,12 +72,8 @@ class EveryPayTest < ActiveSupport::TestCase
refute(other_pay.settled_payment?)
end
def test_valid_response?
assert(@every_pay.valid_response?)
refute(@other_pay.valid_response?)
end
def test_complete_transaction_returns_account_activity_or_nil
# skip('Figure out what fails in Travis')
assert_instance_of(AccountActivity, @every_pay.complete_transaction)
refute(@other_pay.complete_transaction)
end