Skip to content
Snippets Groups Projects
Commit 648d645c authored by Yamagishi Kazutoshi's avatar Yamagishi Kazutoshi Committed by Eugen Rochko
Browse files

Fix randomly fail (similar #7219) (#7225)

parent 3fa31614
No related branches found
No related tags found
No related merge requests found
......@@ -11,13 +11,17 @@ describe ApplicationController, type: :controller do
end
end
around do |example|
current_locale = I18n.locale
example.run
I18n.locale = current_locale
end
before do
routes.draw { get 'success' => 'anonymous#success' }
end
shared_examples 'default locale' do
after { I18n.locale = I18n.default_locale }
it 'sets available and preferred language' do
request.headers['Accept-Language'] = 'ca-ES, fa'
get 'success'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment