From 1bbcbdc94ed600e82f90d25563eb0d1fdfdd81fc Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Wed, 30 Mar 2016 20:55:11 +0200 Subject: [PATCH] Fix spec for default sort order --- spec/controllers/search_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/search_controller_spec.rb b/spec/controllers/search_controller_spec.rb index d6de34d..4db4133 100644 --- a/spec/controllers/search_controller_spec.rb +++ b/spec/controllers/search_controller_spec.rb @@ -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