This commit is contained in:
parent
4faaa5b25e
commit
4fe127664b
5 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue