Module: MiniTest::Unit::Deprecated::Hooks
- Included in:
- TestCase
- Defined in:
- lib/minitest/unit.rb
Overview
This entire module is deprecated and slated for removal on 2013-01-01.
Instance Method Summary collapse
-
#_run_hooks(hooks) ⇒ Object
:nodoc:.
-
#run_setup_hooks ⇒ Object
:nodoc:.
-
#run_teardown_hooks ⇒ Object
:nodoc:.
Instance Method Details
#_run_hooks(hooks) ⇒ Object
:nodoc:
1196 1197 1198 1199 1200 1201 1202 1203 1204 |
# File 'lib/minitest/unit.rb', line 1196 def _run_hooks hooks # :nodoc: hooks.each do |hook| if hook.respond_to?(:arity) && hook.arity == 1 hook.call(self) else hook.call end end end |
#run_setup_hooks ⇒ Object
:nodoc:
1192 1193 1194 |
# File 'lib/minitest/unit.rb', line 1192 def run_setup_hooks # :nodoc: _run_hooks self.class.setup_hooks end |
#run_teardown_hooks ⇒ Object
:nodoc:
1206 1207 1208 |
# File 'lib/minitest/unit.rb', line 1206 def run_teardown_hooks # :nodoc: _run_hooks self.class.teardown_hooks.reverse end |