Sha256: 9e24b61067a9bf87696acbd265c42b4e4f5e42699e6096a96a6448b898bb12be

Contents?: true

Size: 740 Bytes

Versions: 5

Compression:

Stored size: 740 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

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

    context "when deleting partials from the AlternateController" do
      before do
        AlternateController.blacklight_config.index.document_actions.delete(:bookmark)
      end
      it "should not affect the CatalogController" do
        expect(AlternateController.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

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-6.2.0 spec/controllers/alternate_controller_spec.rb
blacklight-6.1.0 spec/controllers/alternate_controller_spec.rb
blacklight-6.0.2 spec/controllers/alternate_controller_spec.rb
blacklight-6.0.1 spec/controllers/alternate_controller_spec.rb
blacklight-6.0.0 spec/controllers/alternate_controller_spec.rb