Sha256: 50ee25e6832e55274369f05ff2d6a56e8c691f27c442a89b8db1c284821e6b2f
Contents?: true
Size: 741 Bytes
Versions: 24
Compression:
Stored size: 741 Bytes
Contents
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
24 entries across 24 versions & 1 rubygems