Sha256: ffc210fbdbd41edbb30b1a8afed8b3fb663d1e9c9c614ba76af4655175af1c57
Contents?: true
Size: 746 Bytes
Versions: 33
Compression:
Stored size: 746 Bytes
Contents
describe 'Creating a page', type: :feature do let(:exhibit) { FactoryGirl.create(:exhibit) } let(:exhibit_curator) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) } describe 'when a bunch of about pages exist' do let!(:page1) { FactoryGirl.create(:about_page, exhibit: exhibit) } let!(:page2) { FactoryGirl.create(:about_page, exhibit: exhibit) } let!(:page3) { FactoryGirl.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
33 entries across 33 versions & 1 rubygems