Sha256: fa3aded6c4a3bfcef38ea5e5c8643f792d2a7bc09bb8aedb080136e5ad51c117
Contents?: true
Size: 885 Bytes
Versions: 5
Compression:
Stored size: 885 Bytes
Contents
require 'spec_helper' describe 'Creating a page', type: :feature do let(:exhibit) { FactoryGirl.create(:default_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_home_page_path(exhibit, exhibit.home_page) within '#user-util-collapse .dropdown' do click_link 'Dashboard' end within '#sidebar' do click_link 'About pages' end expect(page).to have_content 'A new one' end end end
Version data entries
5 entries across 5 versions & 1 rubygems