Class: Test::Unit::TestCase
- Inherits:
-
Object
- Object
- Test::Unit::TestCase
- Defined in:
- lib/rubybreaker/test/testcase.rb
Overview
This class is patched to run RubyBreaker along with the test cases.
Instance Method Summary collapse
-
#__rubybreaker_initialize ⇒ Object
Save the original constructor method.
-
#initialize(*args, &blk) ⇒ TestCase
constructor
This method overrides the original constructor to run RubyBreaker before calling the original constructor.
Constructor Details
#initialize(*args, &blk) ⇒ TestCase
This method overrides the original constructor to run RubyBreaker before calling the original constructor.
16 17 18 19 |
# File 'lib/rubybreaker/test/testcase.rb', line 16 def initialize(*args, &blk) #:nodoc: RubyBreaker.run() return send(:__rubybreaker_initialize, *args, &blk) end |
Instance Method Details
#__rubybreaker_initialize ⇒ Object
Save the original constructor method.
12 |
# File 'lib/rubybreaker/test/testcase.rb', line 12 alias :__rubybreaker_initialize :initialize |