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:
1189 1190 1191 1192 1193 1194 1195 1196 1197 |
# File 'lib/minitest/unit.rb', line 1189 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:
1185 1186 1187 |
# File 'lib/minitest/unit.rb', line 1185 def run_setup_hooks # :nodoc: _run_hooks self.class.setup_hooks end |
#run_teardown_hooks ⇒ Object
:nodoc:
1199 1200 1201 |
# File 'lib/minitest/unit.rb', line 1199 def run_teardown_hooks # :nodoc: _run_hooks self.class.teardown_hooks.reverse end |