Module: TestUnitHelper::InstanceMethods

Included in:
Test::Unit::TestCase
Defined in:
lib/test_unit_helper/instance_methods.rb

Overview

Container for methods that are added to Test::Unit::TestCase as instance methods.

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object

Override initialize to add a few things.



39
40
41
42
43
44
45
46
47
# File 'lib/test_unit_helper/instance_methods.rb', line 39

def initialize(*args)
  super

  reset_io

  unless self.class.test_class.nil?
    @class = Kernel.const_get(self.class.test_class)
  end
end