diff options
author | Claire McQuin <claire@getchef.com> | 2014-06-26 11:27:18 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-06-27 12:43:55 -0700 |
commit | ba42749bf65ea7eb6a197b12fa298792a7923034 (patch) | |
tree | 99170b55a63dbbca12a0598cb99b23fad294862e /spec/functional/mixin | |
parent | 4c77658ef23c689a1364414f0c7d2bfca47c4dcd (diff) | |
download | chef-ba42749bf65ea7eb6a197b12fa298792a7923034.tar.gz |
Set environment option's 'LC_ALL' to nil if not present in option.
Diffstat (limited to 'spec/functional/mixin')
-rw-r--r-- | spec/functional/mixin/shell_out_spec.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/spec/functional/mixin/shell_out_spec.rb b/spec/functional/mixin/shell_out_spec.rb index 7e57de2a0a..55cd3c7c61 100644 --- a/spec/functional/mixin/shell_out_spec.rb +++ b/spec/functional/mixin/shell_out_spec.rb @@ -29,15 +29,7 @@ describe Chef::Mixin::ShellOut do shell_out_with_systems_locale('echo $LC_ALL') end - # From mixlib-shellout/lib/mixlib/shell_out.rb: - # - # * +environment+: a Hash of environment variables to set before the command - # is run. By default, the environment will *always* be set to 'LC_ALL' => 'C' - # to prevent issues with multibyte characters in Ruby 1.8. To avoid this, - # use :environment => nil for *no* extra environment settings, or - # :environment => {'LC_ALL'=>nil, ...} to set other environment settings - # without changing the locale. - cmd.stdout.chomp.should eq 'C' + cmd.stdout.chomp.should eq ENV['LC_ALL'].to_s end end |