inspec/test/unit/mock/profiles/inputs/describe-one/controls/describe-one.rb
Clinton Wolfe f9b65cc54c Test fixture profile for inputs in describe.one
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-11-01 16:52:21 -04: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