spec/controllers/alternate_controller_spec.rb in blacklight-7.0.0.rc1 vs spec/controllers/alternate_controller_spec.rb in blacklight-7.0.0.rc2
- old
+ new
@@ -1,18 +1,19 @@
# 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)
+ expect(described_class.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)
+ described_class.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(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