inspec/test/unit/resources/limits_conf_test.rb
Ryan Davis a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00

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