issue 4807: test for inputs in profiles (#4883)

issue 4807: test for inputs in profiles
This commit is contained in:
Clinton Wolfe 2020-02-04 14:54:29 -05:00 committed by GitHub
commit 64c35b78f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -369,6 +369,14 @@ describe Inspec::Profile do
_(result[:warnings].length).must_equal 1
end
end
describe "inputs" do
let(:profile) { MockLoader.load_profile("inputs/metadata-basic") }
it "loads inputs" do
_(profile.info![:inputs]).must_equal([{ name: "test_01", options: { value: "test_value_01" } }])
end
end
end
end
end