mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +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.errors.full_messages.should include(*[
|
||||
'Contact e-mail is missing',
|
||||
'Country code is missing',
|
||||
'Name is missing',
|
||||
'Reg no is missing',
|
||||
'Code is missing'
|
||||
|
|
|
@ -15,9 +15,8 @@ class RegistrarTest < ActiveSupport::TestCase
|
|||
assert @registrar.invalid?
|
||||
end
|
||||
|
||||
def test_requires_country_code
|
||||
def test_invalid_without_country_code
|
||||
@registrar.country_code = nil
|
||||
@registrar.validate
|
||||
assert @registrar.invalid?
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue