From abbdacedc52d4c7ea0b37e16dd9761bebe02a0f6 Mon Sep 17 00:00:00 2001 From: unarist Date: Mon, 12 Jun 2017 17:58:03 +0900 Subject: Fix locale related specs (#3707) * Use I18n.locale instead of ":en" * Reset I18n.locale value after locale changing tests --- spec/helpers/home_helper_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/helpers/home_helper_spec.rb') diff --git a/spec/helpers/home_helper_spec.rb b/spec/helpers/home_helper_spec.rb index b085e179c..a3dc6f836 100644 --- a/spec/helpers/home_helper_spec.rb +++ b/spec/helpers/home_helper_spec.rb @@ -3,7 +3,7 @@ require 'rails_helper' RSpec.describe HomeHelper, type: :helper do describe 'default_props' do it 'returns default properties according to the context' do - expect(helper.default_props).to eq locale: :en + expect(helper.default_props).to eq locale: I18n.locale end end end -- cgit