From cea8506ffe784fe185604c09b6c7def059dcb639 Mon Sep 17 00:00:00 2001 From: Shane Becker Date: Mon, 25 May 2020 17:15:38 -0700 Subject: [PATCH] Set Current.locale before each spec in spec helper --- spec/spec_helper.rb | 1 + spec/system/tools_index_pages_spec.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e423172c7..302549a0e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -7,6 +7,7 @@ end config.before do + Current.locale = FactoryBot.build_stubbed :locale Current.theme = '2017' end diff --git a/spec/system/tools_index_pages_spec.rb b/spec/system/tools_index_pages_spec.rb index 5c8d083ad..670339a1b 100644 --- a/spec/system/tools_index_pages_spec.rb +++ b/spec/system/tools_index_pages_spec.rb @@ -2,7 +2,6 @@ describe 'Tools Pages' do before do - Current.locale = FactoryBot.build_stubbed :locale Current.theme = '2017' end