Method: Inspec::Rule#expect

Defined in:
lib/inspec/rule.rb

#expect(value, &block) ⇒ Object



136
137
138
139
140
# File 'lib/inspec/rule.rb', line 136

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