diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-17 14:45:24 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-11-17 14:45:24 -0800 |
commit | 3a69a92f622c1bcf49be712a6c41a1c0828346e5 (patch) | |
tree | 1788954a0be84149dd03e5e7b92a326aeeba0924 /spec/unit/config_spec.rb | |
parent | 8d0aeb1716bda762cf6506d8a8f3e570cde600b2 (diff) | |
download | chef-3a69a92f622c1bcf49be712a6c41a1c0828346e5.tar.gz |
stop recomputing locale -a constantlylcg/memoize-locale
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/unit/config_spec.rb')
-rw-r--r-- | spec/unit/config_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/config_spec.rb b/spec/unit/config_spec.rb index fb782da2c7..58fb229c96 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 |