Module: Test::Unit::Priority

Included in:
TestCase
Defined in:
lib/test/unit/priority.rb

Defined Under Namespace

Modules: ClassMethods Classes: Checker

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/test/unit/priority.rb', line 8

def included(base)
  base.extend(ClassMethods)

  base.class_eval do
    setup :priority_setup, :before => :prepend
    teardown :priority_teardown, :after => :append
  end
end

Instance Method Details

#priority_setupObject



137
138
139
# File 'lib/test/unit/priority.rb', line 137

def priority_setup
  Checker.new(self).setup
end

#priority_teardownObject



141
142
143
# File 'lib/test/unit/priority.rb', line 141

def priority_teardown
  Checker.new(self).teardown
end