Sha256: e7053ad23a0418b519f7c22933cc00a4e36f8ce873374b21ea10d31524208eac
Contents?: true
Size: 662 Bytes
Versions: 33
Compression:
Stored size: 662 Bytes
Contents
describe 'Add a contact to an exhibit', type: :feature do let(:curator) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) } let(:exhibit) { FactoryGirl.create(: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
33 entries across 33 versions & 1 rubygems