mirror of
https://github.com/inspec/inspec
synced 2024-09-21 15:02:01 +00:00
2a1b1d8e88
Signed-off-by: Miah Johnson <miah@chia-pet.org>
11 lines
376 B
Ruby
11 lines
376 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 [['soft', 'core', '0'], ['hard', 'rss', '10000']]
|
|
_(resource.send('ftp')).must_equal [["hard", "nproc", "0"]]
|
|
end
|
|
end
|