summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJulian C. Dunn <jdunn@opscode.com>2013-12-04 11:09:59 -0500
committeradamedx <adamed@opscode.com>2014-04-01 13:43:54 -0700
commit7772be58ea3a7bb405cfe679a44c4587dde06c58 (patch)
tree800f80e585d7ad5dd38e59d6c84f6543cfe03f2d /spec
parent1d288ff413e21ab20090592331cb81366186349d (diff)
downloadmixlib-shellout-7772be58ea3a7bb405cfe679a44c4587dde06c58.tar.gz
[MIXLIB-6] Use conditional to determine whether to use /tmp or /bin as a cwd for the test.
Diffstat (limited to 'spec')
-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 949f386..1fab763 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