mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Fix timezone problem in tests
This commit is contained in:
parent
f6b1db2cce
commit
e066b1d246
6 changed files with 66 additions and 47 deletions
|
@ -4,7 +4,7 @@ class BankLinkTest < ActiveSupport::TestCase
|
|||
def setup
|
||||
super
|
||||
@invoice = invoices(:valid)
|
||||
params = {return_url: 'return.url', response_url: 'response.url'}
|
||||
params = { return_url: 'return.url', response_url: 'response.url' }
|
||||
@bank_link = Payments::BankLink.new('seb', @invoice, params)
|
||||
|
||||
travel_to '2018-04-01 00:30'
|
||||
|
@ -15,7 +15,7 @@ class BankLinkTest < ActiveSupport::TestCase
|
|||
travel_back
|
||||
end
|
||||
|
||||
def test_is_not_valid_without_response
|
||||
def test_response_is_not_valid_without_response
|
||||
assert_equal false, @bank_link.valid_response?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue