summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-12-17 22:35:51 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2014-12-17 22:35:51 -0800
commit11322722b3a7211dfeae5d71887307d3ffae91b4 (patch)
tree6ec4435a26d9fe5f071fe50e37c1c51fef36f5d6 /spec
parent8525785c115ba51995b805bed29647956d1f3391 (diff)
downloadmixlib-shellout-11322722b3a7211dfeae5d71887307d3ffae91b4.tar.gz
The process no longer inherit LC_ALL from the parent. Update spec to refelect that.
This fixes a spec that was broken on Windows by 767ea4fc19cb29a55a81a55d1a13643ae3108f4c from PR https://github.com/opscode/mixlib-shellout/pull/58 It seems the Unix spec was updated to reflect this change, but the Windows was not
Diffstat (limited to 'spec')
-rw-r--r--spec/mixlib/shellout_spec.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb
index cb0a33d..00f12d6 100644
--- a/spec/mixlib/shellout_spec.rb
+++ b/spec/mixlib/shellout_spec.rb
@@ -456,19 +456,14 @@ describe Mixlib::ShellOut do
let(:locale) { nil }
context 'when running under Unix', :unix_only do
- let(:parent_locale) { ENV['LC_ALL'].to_s.strip }
-
- it "should unset the parent process's locale" do
+ it "should unset the process's locale" do
should eql("")
end
end
context 'when running under Windows', :windows_only do
- # On windows, if an environmental variable is not set, it returns the key
- let(:parent_locale) { (ENV['LC_ALL'] || '%LC_ALL%').to_s.strip }
-
- it "should use the parent process's locale" do
- should eql(parent_locale)
+ it "should unset process's locale" do
+ should eql('%LC_ALL%')
end
end
end