Sha256: 8bed5b06fde3fb0c2fce10a6da028de5f1bdcd8caec564a3f4e4308220e659a0
Contents?: true
Size: 773 Bytes
Versions: 22
Compression:
Stored size: 773 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
22 entries across 22 versions & 1 rubygems