Class: Dbtap::Tester
- Inherits:
-
Object
- Object
- Dbtap::Tester
- 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
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object (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
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 |