mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
parent
f8088df798
commit
69d0a20115
4 changed files with 32 additions and 27 deletions
|
@ -44,6 +44,9 @@ class RegistrarVATTest < ActiveSupport::TestCase
|
|||
@registrar.vat_rate = ''
|
||||
assert @registrar.invalid?
|
||||
assert @registrar.errors.added?(:vat_rate, :blank)
|
||||
|
||||
@registrar.vat_rate = 5
|
||||
assert @registrar.valid?
|
||||
end
|
||||
|
||||
def test_require_no_vat_rate_when_registrar_is_foreign_vat_payer_and_vat_no_is_present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue