Method: Inspec::Rule#expect

Defined in:
lib/inspec/rule.rb

#expect(value, &block) ⇒ Object



133
134
135
136
137
# File 'lib/inspec/rule.rb', line 133

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