mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Fix leaking test
This commit is contained in:
parent
1cca930744
commit
f6b1db2cce
12 changed files with 134 additions and 31 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'
|
||||
|
|
|
@ -10,7 +10,11 @@ class RegistryTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_vat_rate
|
||||
original_vat_prc = Setting.registry_vat_prc
|
||||
Setting.registry_vat_prc = 0.25
|
||||
|
||||
assert_equal BigDecimal(25), @registry.vat_rate
|
||||
|
||||
Setting.registry_vat_prc = original_vat_prc
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue