Sha256: 4396c3db257fc9110c0162cd209918948b228c6e18299bebc99a1a1614286dea

Contents?: true

Size: 887 Bytes

Versions: 5

Compression:

Stored size: 887 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 "should be 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

Version Path
blacklight-spotlight-0.4.1 spec/features/create_page_spec.rb
blacklight-spotlight-0.3.1 spec/features/create_page_spec.rb
blacklight-spotlight-0.3.0 spec/features/create_page_spec.rb
blacklight-spotlight-0.2.0 spec/features/create_page_spec.rb
blacklight-spotlight-0.1.0 spec/features/create_page_spec.rb