Sha256: ce39ea2b21c683f4b23290f264d0896a591525ab2fa2b4baee8aa703b745975c
Contents?: true
Size: 772 Bytes
Versions: 18
Compression:
Stored size: 772 Bytes
Contents
# frozen_string_literal: true describe 'Creating a page', type: :feature do let(:exhibit) { FactoryBot.create(:exhibit) } let(:exhibit_curator) { FactoryBot.create(:exhibit_curator, exhibit: exhibit) } describe 'when a bunch of about pages exist' do let!(:page1) { FactoryBot.create(:about_page, exhibit: exhibit) } let!(:page2) { FactoryBot.create(:about_page, exhibit: exhibit) } let!(:page3) { FactoryBot.create(:about_page, exhibit: exhibit, title: 'A new one') } it 'is able to show a list of About pages to be curated' do login_as exhibit_curator visit spotlight.exhibit_dashboard_path(exhibit) within '#sidebar' do click_link 'About pages' end expect(page).to have_content 'A new one' end end end
Version data entries
18 entries across 18 versions & 1 rubygems