Sha256: cf471572574ad9d5687e5baf6d0f7582e4eaaf8739297d0a66a4cd579664fdef

Contents?: true

Size: 716 Bytes

Versions: 1

Compression:

Stored size: 716 Bytes

Contents

# frozen_string_literal: true

RSpec.describe AlternateController do
  describe "the search results tools" do
    it "inherits 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 "does 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

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-7.0.0.rc1 spec/controllers/alternate_controller_spec.rb