Module: MiniTest::AroundTestHooks
- Defined in:
- lib/minitest/around_test_hooks.rb
Class Method Summary collapse
Class Method Details
.after_test(instance)
7 8 9 10 11 12 13 |
# File 'lib/minitest/around_test_hooks.rb', line 7 def self.after_test(instance) # MiniTest < 4.1.0 sends #record after all teardown hooks, so don't call # #after_test here. if MiniTest::Unit::VERSION > "4.1.0" MiniTest::Unit.runner.after_test(instance.class, instance.__name__) end end |
.before_test(instance)
3 4 5 |
# File 'lib/minitest/around_test_hooks.rb', line 3 def self.before_test(instance) MiniTest::Unit.runner.before_test(instance.class, instance.__name__) end |