From 7772be58ea3a7bb405cfe679a44c4587dde06c58 Mon Sep 17 00:00:00 2001 From: "Julian C. Dunn" Date: Wed, 4 Dec 2013 11:09:59 -0500 Subject: [MIXLIB-6] Use conditional to determine whether to use /tmp or /bin as a cwd for the test. --- spec/mixlib/shellout_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') 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 -- cgit v1.2.1