Get search dictionary based on I18n.default_locale (merge pull request #3856)

Implementation tries to be open for further extensions, such as deciding on
search dictionary based on configuration option or by locale set for
given user.
This commit is contained in:
Paweł Świątkowski
2020-04-12 14:22:36 +02:00
committed by GitHub
parent 426c1c5fd2
commit d99875cde2
8 changed files with 94 additions and 13 deletions

View File

@@ -1410,7 +1410,7 @@ describe "Proposals" do
end
end
scenario "Order by relevance by default", :js do
scenario "Order by relevance by default", :spanish_search, :js do
create(:proposal, title: "Show you got", cached_votes_up: 10)
create(:proposal, title: "Show what you got", cached_votes_up: 1)
create(:proposal, title: "Show you got", cached_votes_up: 100)