diff options
author | Ranjib Dey <dey.ranjib@gmail.com> | 2013-03-02 12:17:50 -0800 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-11 14:37:05 -0700 |
commit | 54cb19a7a45f8a83033554ae67bafe8e96bbb72e (patch) | |
tree | 7d667eb3a32333d6ca11b84a5a080dca63b3e311 /spec/unit/provider/mount_spec.rb | |
parent | 0e3afdb294cc59ae02497e016a2ede754bc86309 (diff) | |
download | chef-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.rb | 8 |
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 |