summaryrefslogtreecommitdiff
path: root/spec/unit/provider/mount_spec.rb
diff options
context:
space:
mode:
authorRanjib Dey <dey.ranjib@gmail.com>2013-03-02 12:17:50 -0800
committerBryan McLellan <btm@opscode.com>2013-04-11 14:37:05 -0700
commit54cb19a7a45f8a83033554ae67bafe8e96bbb72e (patch)
tree7d667eb3a32333d6ca11b84a5a080dca63b3e311 /spec/unit/provider/mount_spec.rb
parent0e3afdb294cc59ae02497e016a2ede754bc86309 (diff)
downloadchef-54cb19a7a45f8a83033554ae67bafe8e96bbb72e.tar.gz
removing an_return to as its deprecated
Diffstat (limited to 'spec/unit/provider/mount_spec.rb')
-rw-r--r--spec/unit/provider/mount_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/provider/mount_spec.rb b/spec/unit/provider/mount_spec.rb
index 921bde4cc9..ca69db3c4b 100644
--- a/spec/unit/provider/mount_spec.rb
+++ b/spec/unit/provider/mount_spec.rb
@@ -51,7 +51,7 @@ describe Chef::Provider::Mount do
it "should not mount the filesystem if it is mounted" do
@current_resource.stub!(:mounted).and_return(true)
- @provider.should_not_receive(:mount_fs).and_return(true)
+ @provider.should_not_receive(:mount_fs)
@provider.run_action(:mount)
@new_resource.should_not be_updated_by_last_action
end
@@ -68,7 +68,7 @@ describe Chef::Provider::Mount do
it "should not umount the filesystem if it is not mounted" do
@current_resource.stub!(:mounted).and_return(false)
- @provider.should_not_receive(:umount_fs).and_return(true)
+ @provider.should_not_receive(:umount_fs)
@provider.run_action(:umount)
@new_resource.should_not be_updated_by_last_action
end
@@ -115,7 +115,7 @@ describe Chef::Provider::Mount do
it "should not enable the mount if it is enabled" do
@current_resource.stub!(:enabled).and_return(true)
- @provider.should_not_receive(:enable_fs).with.and_return(true)
+ @provider.should_not_receive(:enable_fs)
@provider.run_action(:enable)
@new_resource.should_not be_updated_by_last_action
end
@@ -131,7 +131,7 @@ describe Chef::Provider::Mount do
it "should not disable the mount if it isn't enabled" do
@current_resource.stub!(:enabled).and_return(false)
- @provider.should_not_receive(:disable_fs).with.and_return(true)
+ @provider.should_not_receive(:disable_fs)
@provider.run_action(:disable)
@new_resource.should_not be_updated_by_last_action
end