From 54cb19a7a45f8a83033554ae67bafe8e96bbb72e Mon Sep 17 00:00:00 2001 From: Ranjib Dey Date: Sat, 2 Mar 2013 12:17:50 -0800 Subject: removing an_return to as its deprecated --- spec/unit/provider/mount_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/unit/provider/mount_spec.rb') 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 -- cgit v1.2.1