mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 23:53:15 +01:00
Fix spec for default sort order
This commit is contained in:
parent
c540baa480
commit
1bbcbdc94e
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ RSpec.describe SearchController, type: :controller, elasticsearch: true do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "assigns @search_definition with default sort order" do
|
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'
|
get :index, body: 'leipzig'
|
||||||
expect(assigns(:search_definition).attributes).to eq(search.attributes)
|
expect(assigns(:search_definition).attributes).to eq(search.attributes)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue