summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukta A <mukta.aphale@clogeny.com>2013-06-10 14:15:00 +0530
committeradamedx <adamed@opscode.com>2013-06-11 09:37:52 -0700
commitb7fa4f3f67ba432168eea070f557a079d1ed1235 (patch)
treeec938070791ba4b7c61be4c79cd5c7bea6fd97aa
parentcf544bddcb960c77cf7a8fd0cfd3811e89ab14a0 (diff)
downloadchef-b7fa4f3f67ba432168eea070f557a079d1ed1235.tar.gz
Changes to the windows mount spec for calling the add method with right params
-rw-r--r--spec/unit/provider/mount/windows_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/unit/provider/mount/windows_spec.rb b/spec/unit/provider/mount/windows_spec.rb
index f173ebba22..74579b14fe 100644
--- a/spec/unit/provider/mount/windows_spec.rb
+++ b/spec/unit/provider/mount/windows_spec.rb
@@ -99,7 +99,10 @@ describe Chef::Provider::Mount::Windows do
end
it "should mount the filesystem if it is not mounted" do
- @vol.should_receive(:add).with(@new_resource.device)
+ @vol.should_receive(:add).with(:remote => @new_resource.device,
+ :username => @new_resource.username,
+ :domainname => @new_resource.domain,
+ :password => @new_resource.password)
@provider.mount_fs
end