Prevent ApplicationHelper specs from polluting later ones

We don't want the locale to be set to Brazilian Portuguese for any subsequent
specs!
This commit is contained in:
Sean McGivern 2017-10-18 16:03:38 +01:00
parent 4733570c3d
commit 0139b318f1
1 changed files with 3 additions and 3 deletions

View File

@ -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