diff options
author | Salim Alam <salam@chef.io> | 2016-03-11 09:59:20 -0800 |
---|---|---|
committer | Salim Alam <salam@chef.io> | 2016-03-11 09:59:20 -0800 |
commit | 0c4249a6d822e4ff7034f099f6757b8543f75543 (patch) | |
tree | ba22ce1f7fc890e310d8a5613fa91953bc4c1b89 /spec | |
parent | 99079ce804335db3072cf31c291dfcf2ac707167 (diff) | |
download | chef-0c4249a6d822e4ff7034f099f6757b8543f75543.tar.gz |
Update spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/mount/windows_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/unit/provider/mount/windows_spec.rb b/spec/unit/provider/mount/windows_spec.rb index ab7a161c08..ec1945de50 100644 --- a/spec/unit/provider/mount/windows_spec.rb +++ b/spec/unit/provider/mount/windows_spec.rb @@ -120,6 +120,18 @@ describe Chef::Provider::Mount::Windows do @provider.mount_fs end + context "mount_options_unchanged?" do + it "should return true if mounted device is the same" do + allow(@current_resource).to receive(:device).and_return(GUID) + expect(@provider.send :mount_options_unchanged?).to be true + end + + it "should return false if mounted device has changed" do + allow(@current_resource).to receive(:device).and_return("XXXX") + expect(@provider.send :mount_options_unchanged?).to be false + end + end + it "should not mount the filesystem if it is mounted and the options have not changed" do expect(@vol).to_not receive(:add) allow(@current_resource).to receive(:mounted).and_return(true) |