diff options
Diffstat (limited to 'spec/mixlib/shellout_spec.rb')
-rw-r--r-- | spec/mixlib/shellout_spec.rb | 11 |
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 |