spec/controllers/spotlight/contacts_controller_spec.rb in blacklight-spotlight-0.13.0 vs spec/controllers/spotlight/contacts_controller_spec.rb in blacklight-spotlight-0.14.0

- old
+ new

@@ -11,11 +11,11 @@ end end end describe 'when signed in as a curator' do - let(:user) { FactoryGirl.create(:exhibit_curator) } - let(:exhibit) { user.roles.first.exhibit } + let(:user) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) } + let(:exhibit) { FactoryGirl.create(:exhibit) } let(:contact) { FactoryGirl.create(:contact, exhibit: exhibit, name: 'Andrew Carnegie') } before { sign_in user } describe 'GET edit' do it 'is successful' do