Convert spec to test

#623
This commit is contained in:
Artur Beljajev 2018-02-28 11:52:20 +02:00
parent e4b730caf7
commit 07d58d5b9a
2 changed files with 1 additions and 3 deletions

View file

@ -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'

View file

@ -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