Method: Inspec::Describe#add_test

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

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



60
61
62
63
64
# File 'lib/inspec/objects/describe.rb', line 60

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