From 795dbe9c9108a497a9aabc1b98738a681b82640e Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Mon, 18 Dec 2023 13:31:27 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Remove=20PALS=20specific=20featu?= =?UTF-8?q?re=20request?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In addition to the specific feature request, test the `fetch_service_for` against a Hyrax native service (instead of one that is found only in PALS) --- spec/helpers/blacklight/advanced_search_helper_spec.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/spec/helpers/blacklight/advanced_search_helper_spec.rb b/spec/helpers/blacklight/advanced_search_helper_spec.rb index c393772f8..cc57ea315 100644 --- a/spec/helpers/blacklight/advanced_search_helper_spec.rb +++ b/spec/helpers/blacklight/advanced_search_helper_spec.rb @@ -15,11 +15,6 @@ it "returns the first 6 advanced search fields" do expect(primary_search_fields_for(search_fields_for_advanced_search).size).to eq(6) end - - it "returns the client specified advanced search fields" do - expect(primary_search_fields_for(search_fields_for_advanced_search).map { |search| search.last.key }) - .to eq(["title", "creator", "date_created", "keyword", "license", "subject"]) - end end describe "#secondary_search_fields" do @@ -73,11 +68,11 @@ def fetch_local_yml(key) describe "#fetch_service_for" do it "returns the service class for a given a valid key" do - expect(fetch_service_for('accessibility_feature')).to eq(Hyrax::AccessibilityFeaturesService) + expect(fetch_service_for('rights_statement')).to eq(Hyrax::RightsStatementService) end it "returns the service even if it should have been plural" do - expect(fetch_service_for('accessibility_features')).to eq(Hyrax::AccessibilityFeaturesService) + expect(fetch_service_for('rights_statement')).to eq(Hyrax::RightsStatementService) end it "returns nil for an invalid key" do