summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-11-17 14:45:24 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-11-18 19:59:16 -0800
commit4f4242f0840dd369b873ed0a3e79ca71dc41a138 (patch)
tree7ee2dbd9585e3aa3316d52a2fe06796399bd054a /spec
parentd7fc777086c7c77d67a185cfe714d768f106b9a1 (diff)
downloadchef-4f4242f0840dd369b873ed0a3e79ca71dc41a138.tar.gz
stop recomputing locale -a constantly
fixes an outstanding issue on the locale -a guessing also fixes perf issues in the rspec tests (e.g. deploy provider)
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/config_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/config_spec.rb b/spec/unit/config_spec.rb
index cc83ca3c45..5e4c610bc0 100644
--- a/spec/unit/config_spec.rb
+++ b/spec/unit/config_spec.rb
@@ -434,7 +434,7 @@ describe Chef::Config do
expect(Chef::Log).to_not receive(:warn).with(/Please install an English UTF-8 locale for Chef to use/)
expect(Chef::Log).to_not receive(:debug).with(/Defaulting to locale en_US.UTF-8 on Windows/)
expect(Chef::Log).to_not receive(:debug).with(/No usable locale -a command found/)
- expect(Chef::Config[:internal_locale]).to eq expected_locale
+ expect(Chef::Config.guess_internal_locale).to eq expected_locale
end
end
@@ -485,7 +485,7 @@ describe Chef::Config do
it "should fall back to C locale" do
expect(Chef::Log).to receive(:warn).with("Please install an English UTF-8 locale for Chef to use, falling back to C locale and disabling UTF-8 support.")
- expect(Chef::Config[:internal_locale]).to eq 'C'
+ expect(Chef::Config.guess_internal_locale).to eq 'C'
end
end
@@ -502,7 +502,7 @@ describe Chef::Config do
else
expect(Chef::Log).to receive(:debug).with("No usable locale -a command found, assuming you have en_US.UTF-8 installed.")
end
- expect(Chef::Config[:internal_locale]).to eq "en_US.UTF-8"
+ expect(Chef::Config.guess_internal_locale).to eq "en_US.UTF-8"
end
end
end