Module: Tochtli::Test::UnitTestSupport

Included in:
Client, Controller, Helpers, Integration
Defined in:
lib/tochtli/test/test_unit.rb

Defined Under Namespace

Modules: BaseBeforeSetup

Instance Method Summary collapse

Instance Method Details

#append_features(base) ⇒ Object



9
10
11
12
# File 'lib/tochtli/test/test_unit.rb', line 9

def append_features(base)
  base.send :include, BaseBeforeSetup
  super
end

#included(base) ⇒ Object



14
15
16
17
18
19
# File 'lib/tochtli/test/test_unit.rb', line 14

def included(base)
  if base < ::Test::Unit::TestCase
    base.setup :before_setup # Run before_setup for Test::Unit (Minitest uses it as an only callback)
  end
  super
end