Fix switch_locale to return the block result

This commit is contained in:
Sebastian Serth
2021-06-28 16:08:24 +02:00
parent 4e8033f5d4
commit d08707f62e
3 changed files with 10 additions and 9 deletions

View File

@ -35,7 +35,7 @@ describe ApplicationController do
expect_redirect(:root)
end
describe '#set_locale' do
describe '#switch_locale' do
let(:locale) { :de }
context 'when specifying a locale' do