summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-11-25 13:47:40 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-11-25 13:47:40 -0800
commit5bab29b02248a4468a7fbf7f6226c30255c3abe3 (patch)
treef9640cc5997df15f4915c3a7bbf95ef5bcd7bee8 /spec
parent2dcf8244fd6ad46930112f593e78e0b18851dab6 (diff)
parent3558cccb16ff48be806c3af093462c95d4cc9b04 (diff)
downloadchef-5bab29b02248a4468a7fbf7f6226c30255c3abe3.tar.gz
Merge pull request #2487 from opscode/lcg/fix-windows-warn
suppress locale -a warnings on windows
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/config_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/config_spec.rb b/spec/unit/config_spec.rb
index 58fb229c96..ed2003e8bf 100644
--- a/spec/unit/config_spec.rb
+++ b/spec/unit/config_spec.rb
@@ -426,7 +426,7 @@ describe Chef::Config do
let(:locales) { locale_array.join("\n") }
before do
- allow(Chef::Config).to receive(:shell_out_with_systems_locale).with("locale -a").and_return(shell_out)
+ allow(Chef::Config).to receive(:shell_out_with_systems_locale!).with("locale -a").and_return(shell_out)
end
shared_examples_for "a suitable locale" do
@@ -493,7 +493,7 @@ describe Chef::Config do
let(:locale_array) { [] }
before do
- allow(Chef::Config).to receive(:shell_out_with_systems_locale).and_raise("THIS IS AN ERROR")
+ allow(Chef::Config).to receive(:shell_out_with_systems_locale!).and_raise("THIS IS AN ERROR")
end
it "should default to 'en_US.UTF-8'" do