mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
12 lines
No EOL
317 B
Ruby
12 lines
No EOL
317 B
Ruby
require 'test_helper'
|
|
|
|
class RegistryTest < ActiveSupport::TestCase
|
|
def test_returns_current_registry
|
|
Setting.registry_vat_prc = 0.2
|
|
Setting.registry_country_code = 'US'
|
|
|
|
registry = Registry.current
|
|
assert_equal 20, registry.vat_rate
|
|
assert_equal Country.new(:us), registry.vat_country
|
|
end
|
|
end |