Method: Minitest::Test#run
- Defined in:
- lib/minitest/test.rb
#run ⇒ Object
Runs a single test with setup/teardown hooks.
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/minitest/test.rb', line 87 def run time_it do capture_exceptions do SETUP_METHODS.each do |hook| self.send hook end self.send self.name end TEARDOWN_METHODS.each do |hook| capture_exceptions do self.send hook end end end Result.from self # per contract end |