Fix timezone problem in tests

This commit is contained in:
Maciej Szlosarczyk 2018-04-20 14:29:17 +03:00
parent f6b1db2cce
commit e066b1d246
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
6 changed files with 66 additions and 47 deletions

View file

@ -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