Fix spec for default sort order

This commit is contained in:
Lars Henrik Mai 2016-03-30 20:55:11 +02:00
parent c540baa480
commit 1bbcbdc94e

View file

@ -9,7 +9,7 @@ RSpec.describe SearchController, type: :controller, elasticsearch: true do
end
it "assigns @search_definition with default sort order" do
search = PaperSearch.new(sort_by: 'score')
search = PaperSearch.new(sort_by: 'date')
get :index, body: 'leipzig'
expect(assigns(:search_definition).attributes).to eq(search.attributes)
end