inspec/test/unit/resources/linux_audit_system_test.rb
Sonu Saha be4e6f7594 CFINSPEC-78: Add unit test for be_enabled and be_running
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
2022-04-19 09:33:01 +05:30

13 lines
464 B
Ruby

require "inspec/globals"
require "#{Inspec.src_root}/test/helper"
require_relative "../../../lib/inspec/resources/linux_audit_system"
describe Inspec::Resources::LinuxAuditSystem do
it "works correctly with the constructor on the platform" do
resource = MockLoader.new(:ubuntu).load_resource("linux_audit_system")
_(resource.enabled?).must_equal true
_(resource.running?).must_equal true
# _(resource.rules).must_include "some value"
end
end