diff options
author | Grant Ridder <shortdudey123@gmail.com> | 2016-11-30 11:29:52 -0800 |
---|---|---|
committer | Grant Ridder <shortdudey123@gmail.com> | 2016-11-30 11:37:29 -0800 |
commit | 937faa7e42c6df03b1deec0e8bbc785b7ba33e90 (patch) | |
tree | 9d1fef4c8b8587c831101807b30ec989e869f7df /spec/unit/resource/mount_spec.rb | |
parent | 0a2e27001c3c678f2a0a7d354a14a4e36c6555e9 (diff) | |
download | chef-937faa7e42c6df03b1deec0e8bbc785b7ba33e90.tar.gz |
Alias unmount to umount for mount resource
Allows the usage of `action :unmount` to `umount` a mount point
Closes https://github.com/chef/chef/issues/5595
Signed-off-by: Grant Ridder <shortdudey123@gmail.com>
Diffstat (limited to 'spec/unit/resource/mount_spec.rb')
-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 188eaa67d6..832f7644ac 100644 --- a/spec/unit/resource/mount_spec.rb +++ b/spec/unit/resource/mount_spec.rb @@ -41,9 +41,10 @@ describe Chef::Resource::Mount do expect(@resource.action).to eql([:mount]) end - it "should accept mount, umount and remount as actions" do + it "should accept mount, umount, unmount and remount as actions" do expect { @resource.action :mount }.not_to raise_error expect { @resource.action :umount }.not_to raise_error + expect { @resource.action :unmount }.not_to raise_error expect { @resource.action :remount }.not_to raise_error expect { @resource.action :brooklyn }.to raise_error(ArgumentError) end |