summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian C. Dunn <jdunn@opscode.com>2013-12-04 11:09:59 -0500
committerJulian C. Dunn <jdunn@opscode.com>2013-12-04 11:09:59 -0500
commitea22de879c03a19e306eaee6c4ad911dbda642cd (patch)
tree2a8756fa65f870a714e895490bf9f6016227e98c
parent280dcb0c5d13a4ac276b8b680b095d050bc06ded (diff)
downloadmixlib-shellout-ea22de879c03a19e306eaee6c4ad911dbda642cd.tar.gz
[MIXLIB-6] Use conditional to determine whether to use /tmp or /bin as a cwd for the test.
-rw-r--r--spec/mixlib/shellout_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb
index 68225c6..150aa71 100644
--- a/spec/mixlib/shellout_spec.rb
+++ b/spec/mixlib/shellout_spec.rb
@@ -344,7 +344,7 @@ describe Mixlib::ShellOut do
let(:options) { { :cwd => cwd } }
context 'when running under Unix', :unix_only do
- let(:cwd) { '/tmp' }
+ let(:cwd) { File.symlink?('/bin') ? '/tmp' : '/bin' }
let(:cmd) { 'pwd' }
it "should chdir to the working directory" do