Sha256: 0c72d8bcd20add678ec8a5a6950d062faf0e387333a6afa1ea4c3673ff4a8d8b

Contents?: true

Size: 705 Bytes

Versions: 95

Compression:

Stored size: 705 Bytes

Contents

# frozen_string_literal: true

RSpec.describe AlternateController do
  describe "the search results tools" do
    it "inherits tools from CatalogController" do
      expect(described_class.blacklight_config.index.document_actions).to have_key(:bookmark)
    end

    context "when deleting partials from the AlternateController" do
      before do
        described_class.blacklight_config.index.document_actions.delete(:bookmark)
      end

      it "does not affect the CatalogController" do
        expect(described_class.blacklight_config.index.document_actions).to be_empty
        expect(CatalogController.blacklight_config.index.document_actions).to have_key(:bookmark)
      end
    end
  end
end

Version data entries

95 entries across 94 versions & 2 rubygems

Version Path
blacklight-8.6.1 spec/controllers/alternate_controller_spec.rb
blacklight-7.40.0 spec/controllers/alternate_controller_spec.rb
blacklight-8.6.0 spec/controllers/alternate_controller_spec.rb
blacklight-8.5.1 spec/controllers/alternate_controller_spec.rb
blacklight-8.5.0 spec/controllers/alternate_controller_spec.rb
blacklight-7.39.0 spec/controllers/alternate_controller_spec.rb
blacklight-8.4.0 spec/controllers/alternate_controller_spec.rb
blacklight-7.38.0 spec/controllers/alternate_controller_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/spec/controllers/alternate_controller_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/spec/controllers/alternate_controller_spec.rb
blacklight-8.3.0 spec/controllers/alternate_controller_spec.rb
blacklight-8.2.2 spec/controllers/alternate_controller_spec.rb
blacklight-8.2.1 spec/controllers/alternate_controller_spec.rb
blacklight-8.2.0 spec/controllers/alternate_controller_spec.rb
blacklight-7.37.0 spec/controllers/alternate_controller_spec.rb
blacklight-7.36.2 spec/controllers/alternate_controller_spec.rb
blacklight-7.36.1 spec/controllers/alternate_controller_spec.rb
blacklight-7.36.0 spec/controllers/alternate_controller_spec.rb
blacklight-7.35.0 spec/controllers/alternate_controller_spec.rb
blacklight-8.1.0 spec/controllers/alternate_controller_spec.rb