From 578d77ce22223cd927180f0af6fee373b9279bcd Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Thu, 3 Jan 2019 22:25:20 -0600 Subject: [PATCH] Update tests. Test data crossed the 10 year threshold --- spec/controllers/catalog_controller_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/controllers/catalog_controller_spec.rb b/spec/controllers/catalog_controller_spec.rb index d9085de30a..5b6bca74c8 100644 --- a/spec/controllers/catalog_controller_spec.rb +++ b/spec/controllers/catalog_controller_spec.rb @@ -64,7 +64,7 @@ end it "returns results (possibly 0) when the user asks for a valid value to a custom facet query", integration: true do - get :index, params: { f: { example_query_facet_field: 'years_10' } } # valid custom facet value with some results + get :index, params: { f: { example_query_facet_field: 'years_25' } } # valid custom facet value with some results expect(assigns(:response).docs).not_to be_empty end @@ -172,8 +172,8 @@ let(:query_facet_items) { query_facet['attributes']['items'].map { |x| x['attributes'] } } it "has items with labels and values" do - expect(query_facet_items.first['label']).to eq 'within 10 Years' - expect(query_facet_items.first['value']).to eq 'years_10' + expect(query_facet_items.first['label']).to eq 'within 25 Years' + expect(query_facet_items.first['value']).to eq 'years_25' end end end