mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
parent
e4b730caf7
commit
07d58d5b9a
2 changed files with 1 additions and 3 deletions
|
@ -10,7 +10,6 @@ describe Registrar do
|
||||||
@registrar.valid?
|
@registrar.valid?
|
||||||
@registrar.errors.full_messages.should include(*[
|
@registrar.errors.full_messages.should include(*[
|
||||||
'Contact e-mail is missing',
|
'Contact e-mail is missing',
|
||||||
'Country code is missing',
|
|
||||||
'Name is missing',
|
'Name is missing',
|
||||||
'Reg no is missing',
|
'Reg no is missing',
|
||||||
'Code is missing'
|
'Code is missing'
|
||||||
|
|
|
@ -15,9 +15,8 @@ class RegistrarTest < ActiveSupport::TestCase
|
||||||
assert @registrar.invalid?
|
assert @registrar.invalid?
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_requires_country_code
|
def test_invalid_without_country_code
|
||||||
@registrar.country_code = nil
|
@registrar.country_code = nil
|
||||||
@registrar.validate
|
|
||||||
assert @registrar.invalid?
|
assert @registrar.invalid?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue