diff options
author | Julian C. Dunn <jdunn@getchef.com> | 2014-01-08 16:06:23 -0500 |
---|---|---|
committer | Julian C. Dunn <jdunn@getchef.com> | 2014-01-08 16:06:23 -0500 |
commit | d233f37107665e37879a312ce142f006b003affd (patch) | |
tree | 9ca5e3c7b02577f22d291a531560df65a71b7a4a | |
parent | ea22de879c03a19e306eaee6c4ad911dbda642cd (diff) | |
download | mixlib-shellout-d233f37107665e37879a312ce142f006b003affd.tar.gz |
[MIXLIB-6] Add comment describing why the test was changed, per Dan DeLeo.
-rw-r--r-- | spec/mixlib/shellout_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb index 150aa71..44f29d7 100644 --- a/spec/mixlib/shellout_spec.rb +++ b/spec/mixlib/shellout_spec.rb @@ -344,6 +344,8 @@ describe Mixlib::ShellOut do let(:options) { { :cwd => cwd } } context 'when running under Unix', :unix_only do + # Use /bin for tests only if it is not a symlink. Some + # distributions (e.g. Fedora) symlink it to /usr/bin let(:cwd) { File.symlink?('/bin') ? '/tmp' : '/bin' } let(:cmd) { 'pwd' } |