mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Add tests for Payments::BankLink
This commit is contained in:
parent
663214ee49
commit
5dea92c0d8
12 changed files with 294 additions and 150 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue