mirror of
https://github.com/inspec/inspec
synced 2024-11-13 08:27:08 +00:00
a5309ea392
Signed-off-by: Ryan Davis <zenspider@chef.io>
11 lines
358 B
Ruby
11 lines
358 B
Ruby
require "helper"
|
|
require "inspec/resource"
|
|
require "inspec/resources/limits_conf"
|
|
|
|
describe "Inspec::Resources::LimitsConf" do
|
|
it "verify limits.conf config parsing" do
|
|
resource = load_resource("limits_conf")
|
|
_(resource.send("*")).must_equal [%w{soft core 0}, %w{hard rss 10000}]
|
|
_(resource.send("ftp")).must_equal [%w{hard nproc 0}]
|
|
end
|
|
end
|