Sha256: 39640162bd2d778100254eaab3155082e3fb05c58d9a06da905306831d941b8d

Contents?: true

Size: 954 Bytes

Versions: 21

Compression:

Stored size: 954 Bytes

Contents

require 'spec_helper'

describe 'Catalog', type: :feature do
  describe 'admin' do
    let(:exhibit) { FactoryGirl.create(:exhibit) }
    let(:curator) { FactoryGirl.create(:exhibit_curator, exhibit: exhibit) }

    before do
      login_as curator
      d = SolrDocument.new(id: 'dq287tq6352')
      d.make_private! exhibit
      d.reindex
      Blacklight.default_index.connection.commit
    end

    after do
      d = SolrDocument.new(id: 'dq287tq6352')
      d.make_public! exhibit
      d.reindex
      Blacklight.default_index.connection.commit
    end

    it "has a 'Item Visiblity' facet" do
      visit spotlight.exhibit_catalog_index_path(exhibit)
      expect(page).to have_selector '.panel-title', text: 'Item Visibility'
    end
  end
  describe 'Non-spotlight #show' do
    it 'is able to render without exhibit context' do
      visit catalog_path('dq287tq6352')
      expect(page).to have_css 'h1', text: "L'AMERIQUE"
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
blacklight-spotlight-0.17.1 spec/features/catalog_spec.rb
blacklight-spotlight-0.17.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.16.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.15.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.14.2 spec/features/catalog_spec.rb
blacklight-spotlight-0.14.1 spec/features/catalog_spec.rb
blacklight-spotlight-0.14.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.13.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.12.1 spec/features/catalog_spec.rb
blacklight-spotlight-0.12.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.11.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.10.3 spec/features/catalog_spec.rb
blacklight-spotlight-0.10.2 spec/features/catalog_spec.rb
blacklight-spotlight-0.10.1 spec/features/catalog_spec.rb
blacklight-spotlight-0.10.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.9.2 spec/features/catalog_spec.rb
blacklight-spotlight-0.9.1 spec/features/catalog_spec.rb
blacklight-spotlight-0.9.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.8.2 spec/features/catalog_spec.rb
blacklight-spotlight-0.8.1 spec/features/catalog_spec.rb