inspec/test/unit/resources/limits_conf_test.rb

12 lines
358 B
Ruby
Raw Normal View History

require "helper"
require "inspec/resource"
require "inspec/resources/limits_conf"
2015-09-05 18:29:34 +00:00
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}]
2015-09-05 18:29:34 +00:00
end
end