Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-10-18 18:03:38 +0300
committerSean McGivern <sean@gitlab.com>2017-10-18 18:03:38 +0300
commit0139b318f1419bf5266ed68ded04415361ead4eb (patch)
treeb4785a6b1612dd74d9af85eb0eec2d22a91c1192 /spec/helpers/application_helper_spec.rb
parent4733570c3d710f3124718fa1173f3068eb932281 (diff)
Prevent ApplicationHelper specs from polluting later ones
We don't want the locale to be set to Brazilian Portuguese for any subsequent specs!
Diffstat (limited to 'spec/helpers/application_helper_spec.rb')
-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