diff options
author | siddheshwar-more <siddheshwar.more@clogeny.com> | 2015-04-22 16:26:14 +0530 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-08-18 12:15:44 -0700 |
commit | 37ea6045f5bffeb649118d4a199be403e05e193c (patch) | |
tree | 08a2aedbccd2e0b2fd976bbf400a0e65773082e7 | |
parent | a2aaa20335f546e885b5a121d2e7e4cc07ef5523 (diff) | |
download | chef-37ea6045f5bffeb649118d4a199be403e05e193c.tar.gz |
Added changes to fix rspec deprecations
-rw-r--r-- | spec/unit/provider/mount/windows_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider/mount/windows_spec.rb b/spec/unit/provider/mount/windows_spec.rb index 4ceab38aa6..2de6f11d43 100644 --- a/spec/unit/provider/mount/windows_spec.rb +++ b/spec/unit/provider/mount/windows_spec.rb @@ -113,7 +113,7 @@ describe Chef::Provider::Mount::Windows do end it "should remount the filesystem if it is mounted and the options have changed" do - @vol.should_receive(:add).with(:remote => @new_resource.device, + expect(@vol).to receive(:add).with(:remote => @new_resource.device, :username => @new_resource.username, :domainname => @new_resource.domain, :password => @new_resource.password) @@ -121,8 +121,8 @@ describe Chef::Provider::Mount::Windows do end it "should not mount the filesystem if it is mounted and the options have not changed" do - @vol.should_not_receive(:add) - @current_resource.stub(:mounted).and_return(true) + expect(@vol).to_not receive(:add) + allow(@current_resource).to receive(:mounted).and_return(true) @provider.mount_fs end end |