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