Method: Inspec::Rule#expect

Defined in:
lib/inspec/rule.rb

#expect(value, &block) ⇒ Object



129
130
131
132
133
# File 'lib/inspec/rule.rb', line 129

def expect(value, &block)
  target = Inspec::Expect.new(value, &with_dsl(block))
  __add_check('expect', [value], target)
  target
end