Class: Test::Unit::TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/rubybreaker/test/testcase.rb

Overview

This class is patched to run RubyBreaker along with the test cases.

Instance Method Summary collapse

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_initializeObject

Save the original constructor method.



12
# File 'lib/rubybreaker/test/testcase.rb', line 12

alias :__rubybreaker_initialize :initialize