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

Version Path
blacklight-spotlight-0.18.0 spec/features/create_page_spec.rb
blacklight-spotlight-0.17.1 spec/features/create_page_spec.rb
blacklight-spotlight-0.17.0 spec/features/create_page_spec.rb
blacklight-spotlight-0.16.0 spec/features/create_page_spec.rb
blacklight-spotlight-0.15.0 spec/features/create_page_spec.rb
blacklight-spotlight-0.14.2 spec/features/create_page_spec.rb
blacklight-spotlight-0.14.1 spec/features/create_page_spec.rb
blacklight-spotlight-0.14.0 spec/features/create_page_spec.rb
blacklight-spotlight-0.13.0 spec/features/create_page_spec.rb
blacklight-spotlight-0.12.1 spec/features/create_page_spec.rb
blacklight-spotlight-0.12.0 spec/features/create_page_spec.rb