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:
1161 1162 1163 1164 1165 1166 1167 1168 1169 |
# File 'lib/minitest/unit.rb', line 1161 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:
1157 1158 1159 |
# File 'lib/minitest/unit.rb', line 1157 def run_setup_hooks # :nodoc: _run_hooks self.class.setup_hooks end |
#run_teardown_hooks ⇒ Object
:nodoc:
1171 1172 1173 |
# File 'lib/minitest/unit.rb', line 1171 def run_teardown_hooks # :nodoc: _run_hooks self.class.teardown_hooks.reverse end |