From d44c6f82f9526281bd7779742d02963901879a40 Mon Sep 17 00:00:00 2001 From: Eran H Date: Sat, 15 Feb 2014 10:55:42 +0200 Subject: [PATCH] Fixed one of solr_facet_params test --- spec/lib/blacklight/solr_helper_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/lib/blacklight/solr_helper_spec.rb b/spec/lib/blacklight/solr_helper_spec.rb index ffd39e492c..85563a0f93 100644 --- a/spec/lib/blacklight/solr_helper_spec.rb +++ b/spec/lib/blacklight/solr_helper_spec.rb @@ -543,6 +543,9 @@ def facet_list_limit # The specific params used for fetching the facet list we # don't care about. next if ['facets', 'facet.field', 'rows', 'facet.limit', 'facet.offset', 'facet.sort'].include?(key) + # The specific params for other facet fields than 'format' (like f.facet_ordered.facet.sort = 'count') + # we don't care about, they will return in #solr_search_params but not in #solr_facet_params + next if (key.include?('format_ordered') || key.include?('format_limited')) # Everything else should match expect(solr_facet_params[key]).to eq value end