diff options
-rw-r--r-- | spec/unit/resource/mount_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/resource/mount_spec.rb b/spec/unit/resource/mount_spec.rb index fd81901f45..721f30cf09 100644 --- a/spec/unit/resource/mount_spec.rb +++ b/spec/unit/resource/mount_spec.rb @@ -44,6 +44,16 @@ describe Chef::Resource::Mount do expect(resource.device).to eql("/dev/sdb3") end + it "allows you to set mount_point property" do + resource.mount_point "U:" + expect(resource.mount_point).to eql("U:") + end + + it "raises error when mount_point property is not set" do + resource.mount_point nil + expect { resource.mounted("poop") }.to raise_error(ArgumentError) + end + it "sets fsck_device to '-' by default" do expect(resource.fsck_device).to eql("-") end |