Method: Inspec::Describe#add_test

Defined in:
lib/inspec/objects/describe.rb

#add_test(its, matcher, expectation, opts = {}) ⇒ Object



58
59
60
61
62
# File 'lib/inspec/objects/describe.rb', line 58

def add_test(its, matcher, expectation, opts = {})
  test = Inspec::Describe::Test.new(its, matcher, expectation, opts[:negated])
  tests.push(test)
  test
end