Class: Dbtap::Tester

Inherits:
Object
  • Object
show all
Defined in:
lib/dbtap/testers/tester.rb

Overview

Parent class to all classes that provide some sort of test

Child classes must provide an ok? method which returns true if the test passes, or false otherwise

Child classes can opt to provide an errors method with should return a string with any error information relavent to the test

Direct Known Subclasses

PerformsWithin, SetEq

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/dbtap/testers/tester.rb', line 10

def name
  @name
end

Instance Method Details

#is_ok?Boolean

Returns:

  • (Boolean)


12
13
14
15
16
17
18
# File 'lib/dbtap/testers/tester.rb', line 12

def is_ok?
  ok?
rescue
  puts "Bail out! #{$!.message}"
  puts $!.backtrace.join("\n")
  raise
end