summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-10-18 16:03:38 +0100
committerSean McGivern <sean@gitlab.com>2017-10-18 16:03:38 +0100
commit0139b318f1419bf5266ed68ded04415361ead4eb (patch)
treeb4785a6b1612dd74d9af85eb0eec2d22a91c1192
parent4733570c3d710f3124718fa1173f3068eb932281 (diff)
downloadgitlab-ce-39253-jobs-fail-because-of-brazilian-portuguese-translations.tar.gz
Prevent ApplicationHelper specs from polluting later ones39253-jobs-fail-because-of-brazilian-portuguese-translations
We don't want the locale to be set to Brazilian Portuguese for any subsequent specs!
-rw-r--r--spec/helpers/application_helper_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb
index 66785cf32da..7a241b02d28 100644
--- a/spec/helpers/application_helper_spec.rb
+++ b/spec/helpers/application_helper_spec.rb
@@ -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