summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian C. Dunn <jdunn@getchef.com>2014-01-08 16:06:23 -0500
committerJulian C. Dunn <jdunn@getchef.com>2014-01-08 16:06:23 -0500
commitd233f37107665e37879a312ce142f006b003affd (patch)
tree9ca5e3c7b02577f22d291a531560df65a71b7a4a
parentea22de879c03a19e306eaee6c4ad911dbda642cd (diff)
downloadmixlib-shellout-d233f37107665e37879a312ce142f006b003affd.tar.gz
[MIXLIB-6] Add comment describing why the test was changed, per Dan DeLeo.
-rw-r--r--spec/mixlib/shellout_spec.rb2
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' }