Sha256: 4e293b18240cc54a6f37df6d66135642d3f965c43055638b030b493a0eceb195
Contents?: true
Size: 769 Bytes
Versions: 11
Compression:
Stored size: 769 Bytes
Contents
require 'spec_helper' 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
11 entries across 11 versions & 1 rubygems