mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
parent
37cc05e44c
commit
ea305618a5
4 changed files with 29 additions and 3 deletions
16
test/models/registry_test.rb
Normal file
16
test/models/registry_test.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
require 'test_helper'
|
||||
|
||||
class RegistryTest < ActiveSupport::TestCase
|
||||
def setup
|
||||
@registry = Registry.send(:new)
|
||||
end
|
||||
|
||||
def test_implements_singleton
|
||||
assert_equal Registry.instance.object_id, Registry.instance.object_id
|
||||
end
|
||||
|
||||
def test_vat_rate
|
||||
Setting.registry_vat_prc = 0.2
|
||||
assert 0.2, @registry.vat_rate
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue