mirror of
https://github.com/inspec/inspec
synced 2024-11-10 23:24:18 +00:00
issue 4807: test for inputs in profiles (#4883)
issue 4807: test for inputs in profiles
This commit is contained in:
commit
64c35b78f9
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue