From 07d58d5b9a5fd6dc49872c466e343c633258cb8e Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Wed, 28 Feb 2018 11:52:20 +0200 Subject: [PATCH] Convert spec to test #623 --- spec/models/registrar_spec.rb | 1 - test/models/registrar_test.rb | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/models/registrar_spec.rb b/spec/models/registrar_spec.rb index 4a8110d45..301d59bcb 100644 --- a/spec/models/registrar_spec.rb +++ b/spec/models/registrar_spec.rb @@ -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' diff --git a/test/models/registrar_test.rb b/test/models/registrar_test.rb index 5d0894e0e..057c34f62 100644 --- a/test/models/registrar_test.rb +++ b/test/models/registrar_test.rb @@ -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