Sha256: d98dfe5add8ba9226b222135ae5b5bb102336ab88d6fa05df09a0f5a4def004d
Contents?: true
Size: 667 Bytes
Versions: 19
Compression:
Stored size: 667 Bytes
Contents
require 'spec_helper' describe 'Add a contact to an exhibit', type: :feature do let(:curator) { FactoryGirl.create(:exhibit_curator) } let(:exhibit) { curator.roles.first.exhibit } let!(:about_page) { FactoryGirl.create(:about_page, exhibit: exhibit) } let!(:contact) { FactoryGirl.create(:contact, name: 'Marcus Aurelius', exhibit: exhibit) } before { login_as curator } it 'displays a newly added contact in the sidebar' do visit spotlight.exhibit_about_pages_path(exhibit) within '.contacts_admin' do click_link 'Edit' end click_button 'Save' expect(page).to have_content 'The contact was successfully updated.' end end
Version data entries
19 entries across 19 versions & 1 rubygems