issue 4807: test for inputs in profiles

Signed-off-by: Nazli Beitollahpour <nazli.beitollahpour@umontreal.ca>
This commit is contained in:
Nazli Beitollahpour 2019-12-30 19:38:02 -05:00
parent 3cfd35f98f
commit 8a03d38b4b

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