diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-11-23 15:06:28 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-11-23 15:06:28 -0800 |
commit | 01fdf53ada4aa10968501662b54a3f17c76cb9f4 (patch) | |
tree | 24b1e88e3c9e869f7efcfe3b0c137d783eef613c | |
parent | 74b698b8ce2bb9860df80e90308b1531c20db6c8 (diff) | |
download | chef-01fdf53ada4aa10968501662b54a3f17c76cb9f4.tar.gz |
Revert "Fixed spec failure when mount_point property is not set."
This reverts commit 0dc8f454e8265869549b4b817511e47d99bf442b.
-rw-r--r-- | spec/unit/resource/mount_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/resource/mount_spec.rb b/spec/unit/resource/mount_spec.rb index 5d4f02b8c7..0561a69b6d 100644 --- a/spec/unit/resource/mount_spec.rb +++ b/spec/unit/resource/mount_spec.rb @@ -60,7 +60,8 @@ describe Chef::Resource::Mount do end it "raises error when mount_point property is not set" do - expect{ resource.mount_point nil }.to raise_error(Chef::Exceptions::ValidationFailed, "Property mount_point must be one of: String! You passed nil.") + resource.mount_point nil + expect { resource.mounted("poop") }.to raise_error(ArgumentError) end it "sets fsck_device to '-' by default" do |