Commit 0139b318 authored by Sean McGivern's avatar Sean McGivern

Prevent ApplicationHelper specs from polluting later ones

We don't want the locale to be set to Brazilian Portuguese for any subsequent
specs!
parent 4733570c
......@@ -312,9 +312,9 @@ describe ApplicationHelper do
describe '#locale_path' do
it 'returns the locale path with an `_`' do
Gitlab::I18n.locale = 'pt-BR'
expect(helper.locale_path).to include('assets/locale/pt_BR/app')
Gitlab::I18n.with_locale('pt-BR') do
expect(helper.locale_path).to include('assets/locale/pt_BR/app')
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment