0
0
Fork 0

add admin setting for default search engine indexing (fix #11750) (#11804)

This commit is contained in:
Tao Bror Bojlén 2019-09-11 07:44:58 +01:00 committed by Eugen Rochko
parent 4faaa5b25e
commit 4fe127664b
5 changed files with 10 additions and 0 deletions

View file

@ -110,6 +110,7 @@ describe ApplicationController, type: :controller do
sign_in current_user
allow(Setting).to receive(:[]).with('theme').and_return 'contrast'
allow(Setting).to receive(:[]).with('noindex').and_return false
expect(controller.view_context.current_theme).to eq 'contrast'
end