Class: EtestUnit::TestSuiteCreator

Inherits:
Test::Unit::TestSuiteCreator
  • Object
show all
Defined in:
lib/etest-unit.rb

Defined Under Namespace

Modules: ActiveRecordAdditions, MochaAdditions

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#testsObject

Returns the value of attribute tests.



31
32
33
# File 'lib/etest-unit.rb', line 31

def tests
  @tests
end

Instance Method Details

#createObject



83
84
85
86
87
88
# File 'lib/etest-unit.rb', line 83

def create
  suite = super
  suite.extend ActiveRecordAdditions if defined?(::ActiveRecord)
  suite.extend MochaAdditions if defined?(::Mocha)
  suite
end