summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJulian C. Dunn <jdunn@getchef.com>2014-01-08 16:06:23 -0500
committeradamedx <adamed@opscode.com>2014-04-01 13:43:54 -0700
commitc7bd4e2cf4449c1b8960a0f907a367aacbf531ed (patch)
tree918ae1e550d250911c54ba54e12524317104b698 /spec
parent7772be58ea3a7bb405cfe679a44c4587dde06c58 (diff)
downloadmixlib-shellout-c7bd4e2cf4449c1b8960a0f907a367aacbf531ed.tar.gz
[MIXLIB-6] Add comment describing why the test was changed, per Dan DeLeo.
Diffstat (limited to 'spec')
-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 1fab763..276adbf 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' }