inspec/test/fixtures/profiles/inputs/describe-one/controls/describe-one.rb
Ryan Davis db8e6e7415 Moved test/unit/mock/* to test/fixtures
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-11-08 16:29:03 -08:00

19 lines
562 B
Ruby

control "control-01" do
# Sanity check that inputs in fact do work in control-level DSL as reported on #4523
value = input("input-inner-control", value: "test-value-01")
describe.one do
value = input("input-outer-test", value: "test-value-02")
describe "test-value-03" do
it { should cmp input("input-inner-test", value: "test-value-03") }
end
end
describe.one do
# Verify input_object DSL access works here
obj = input_object("input-outer-test")
describe obj.events.count do
it { should cmp 2 }
end
end
end