Fix domain contact spec

registry-180
This commit is contained in:
Artur Beljajev 2016-10-31 18:39:14 +02:00
parent 69be717b91
commit 837ef067e7

View file

@ -1,12 +1,12 @@
require 'rails_helper'
describe DomainContact do
before :all do
before :example do
@api_user = Fabricate(:domain_contact)
end
context 'with invalid attribute' do
before :all do
before :example do
@domain_contact = DomainContact.new
end
@ -31,7 +31,7 @@ describe DomainContact do
end
context 'with valid attributes' do
before :all do
before :example do
@domain_contact = Fabricate(:domain_contact)
end
@ -62,7 +62,7 @@ describe DomainContact do
end
context 'with valid attributes with tech domain contact' do
before :all do
before :example do
@domain_contact = Fabricate(:tech_domain_contact)
end
@ -93,7 +93,7 @@ describe DomainContact do
end
context 'with valid attributes with admin domain contact' do
before :all do
before :example do
@domain_contact = Fabricate(:admin_domain_contact)
end