Sha256: 4c88015e3ce567014df5b8d3c7fa9523d5c5802335b23b5f708fae9d36fe0bb0
Contents?: true
Size: 658 Bytes
Versions: 15
Compression:
Stored size: 658 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
15 entries across 15 versions & 1 rubygems