diff options
author | Serdar Sutay <serdar@opscode.com> | 2014-10-21 10:55:26 -0700 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2014-10-21 10:55:26 -0700 |
commit | 20a1817caaf7aae8f8391a0a88df136cf01af832 (patch) | |
tree | 9633c5b0080d1f01eba84540b18b9b39064eb8ab /spec/unit | |
parent | fcae30b2026adf4a87346dc056c2b21e19fb9287 (diff) | |
parent | 9aa5caccf2220b747071debfc0f9b2d2eba72568 (diff) | |
download | chef-20a1817caaf7aae8f8391a0a88df136cf01af832.tar.gz |
Merge pull request #2237 from rottenbytes/mount_cgroups
mount resource : allow to mount cgroups
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/provider/mount/mount_spec.rb | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/spec/unit/provider/mount/mount_spec.rb b/spec/unit/provider/mount/mount_spec.rb index d6f71bc613..abab7640c0 100644 --- a/spec/unit/provider/mount/mount_spec.rb +++ b/spec/unit/provider/mount/mount_spec.rb @@ -107,16 +107,12 @@ describe Chef::Provider::Mount::Mount do lambda { @provider.load_current_resource();@provider.mountable? }.should raise_error(Chef::Exceptions::Mount) end - it "does not expect the device to exist for tmpfs" do - @new_resource.fstype("tmpfs") - @new_resource.device("whatever") - lambda { @provider.load_current_resource();@provider.mountable? }.should_not raise_error - end - - it "does not expect the device to exist for Fuse filesystems" do - @new_resource.fstype("fuse") - @new_resource.device("nilfs#xxx") - lambda { @provider.load_current_resource();@provider.mountable? }.should_not raise_error + [ "tmpfs", "fuse", "cgroup" ].each do |fstype| + it "does not expect the device to exist for #{fstype}" do + @new_resource.fstype(fstype) + @new_resource.device("whatever") + lambda { @provider.load_current_resource();@provider.mountable? }.should_not raise_error + end end it "does not expect the device to exist if it's none" do |