Sha256: 414d01d3e64670a5bb595711a60ed422cccbf97dff1a4f4963a611025f784880

Contents?: true

Size: 938 Bytes

Versions: 11

Compression:

Stored size: 938 Bytes

Contents

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.search_exhibit_catalog_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 solr_document_path('dq287tq6352')
      expect(page).to have_css 'h1', text: "L'AMERIQUE"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-spotlight-0.24.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.23.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.22.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.21.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.20.3 spec/features/catalog_spec.rb
blacklight-spotlight-0.20.2 spec/features/catalog_spec.rb
blacklight-spotlight-0.20.1 spec/features/catalog_spec.rb
blacklight-spotlight-0.20.0 spec/features/catalog_spec.rb
blacklight-spotlight-0.19.2 spec/features/catalog_spec.rb
blacklight-spotlight-0.19.1 spec/features/catalog_spec.rb
blacklight-spotlight-0.19.0 spec/features/catalog_spec.rb