summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHo-Sheng Hsiao <hosheng.hsiao@gmail.com>2012-03-23 19:05:05 -0400
committerHo-Sheng Hsiao <hosheng.hsiao@gmail.com>2012-03-23 19:05:05 -0400
commit566d6b8803a2936c01d85ca5c872bca8d26a408e (patch)
tree4cc340b1b558a809a2f1f8f95dc17b43e48c9829
parent253bd4435988e6b7618357daf71669f7c56f6ee0 (diff)
downloadchef-566d6b8803a2936c01d85ca5c872bca8d26a408e.tar.gz
[RSPEC/DOC] Clarified comments about windows evironmental locale
-rw-r--r--spec/mixlib/shellout/shellout_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/mixlib/shellout/shellout_spec.rb b/spec/mixlib/shellout/shellout_spec.rb
index 513b04d579..b3f4382d7e 100644
--- a/spec/mixlib/shellout/shellout_spec.rb
+++ b/spec/mixlib/shellout/shellout_spec.rb
@@ -318,9 +318,7 @@ describe Mixlib::ShellOut do
end
context 'when running under Windows', :windows_only => true do
- # FIXME: I don't understand the original:
- # https://github.com/opscode/mixlib-shellout/blob/7a1fd26ab7c74023e044bfa306dff3d6b1de3d99/spec/mixlib/shellout/shellout_spec.rb#L316
- # Is it saying that under Windows, ENV['LC_ALL'] can have something, otherwise if blank, it will be '%LC_ALL%'?
+ # 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