summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-06-02 15:23:46 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-06-02 15:23:46 -0700
commitd14a3b7e97a51c306e4c14a591fbfe5c39c09f0c (patch)
tree0e1b0a56d6e87ab6d5e49b3bd1a01fa65a6714af
parenta7b2d2ccfdb068744bcb9dffe7fd8c27b83b7a1d (diff)
downloadchef-d14a3b7e97a51c306e4c14a591fbfe5c39c09f0c.tar.gz
moved this check into the resource
-rw-r--r--spec/unit/provider/mount/solaris_spec.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/unit/provider/mount/solaris_spec.rb b/spec/unit/provider/mount/solaris_spec.rb
index af3f541001..e7dd17c746 100644
--- a/spec/unit/provider/mount/solaris_spec.rb
+++ b/spec/unit/provider/mount/solaris_spec.rb
@@ -101,22 +101,6 @@ describe Chef::Provider::Mount::Solaris do
[:mount_fs, :umount_fs, :remount_fs, :enable_fs, :disable_fs].each {|m| provider.stub(m) }
end
- context "when the device_type is :label" do
- let(:device_type) { :label }
-
- it "should raise an error" do
- expect { provider.define_resource_requirements }.to raise_error(Chef::Exceptions::Mount)
- end
- end
-
- context "when the device_type is :uuid" do
- let(:device_type) { :uuid }
-
- it "should raise an error" do
- expect { provider.define_resource_requirements }.to raise_error(Chef::Exceptions::Mount)
- end
- end
-
it "run_action(:mount) should raise an error if the device does not exist" do
File.stub(:exist?).with(device).and_return(false)
expect { provider.run_action(:mount) }.to raise_error(Chef::Exceptions::Mount)