summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-06-02 12:06:40 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-06-02 12:06:40 -0700
commiteb5b359cb7e88fc10f418223c23ba143793ce89c (patch)
tree834980d441295f21266271a986c85b6615c31d35
parente16859d61e78fab7d9c67bbaa794d8dd63b95ebd (diff)
downloadchef-eb5b359cb7e88fc10f418223c23ba143793ce89c.tar.gz
effing ruby 1.8.7
-rw-r--r--spec/unit/provider/mount/solaris_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/provider/mount/solaris_spec.rb b/spec/unit/provider/mount/solaris_spec.rb
index 3f680a8d4e..af3f541001 100644
--- a/spec/unit/provider/mount/solaris_spec.rb
+++ b/spec/unit/provider/mount/solaris_spec.rb
@@ -89,6 +89,7 @@ describe Chef::Provider::Mount::Solaris do
stub_const("Chef::Provider::Mount::Solaris::VFSTAB", vfstab_file.path )
provider.stub(:shell_out!).with("mount -v").and_return(OpenStruct.new(:stdout => mount_output))
File.stub(:symlink?).with(device).and_return(false)
+ File.stub(:exist?).and_call_original # Tempfile.open on ruby 1.8.7 calls File.exist?
File.stub(:exist?).with(device).and_return(true)
File.stub(:exist?).with(mountpoint).and_return(true)
expect(File).to_not receive(:exists?)