Skip to content

Commit

Permalink
Merge pull request #2051 from projectblacklight/old-data
Browse files Browse the repository at this point in the history
Update tests. Test data crossed the 10 year threshold
  • Loading branch information
mejackreed authored Jan 4, 2019
2 parents fec0955 + 578d77c commit c5827f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/controllers/catalog_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c5827f5

Please sign in to comment.