Class: Test::Unit::TestCase
- Inherits:
-
Object
- Object
- Test::Unit::TestCase
- Defined in:
- lib/hornsby/test_unit_extensions.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.enable_hornsby(options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/hornsby/test_unit_extensions.rb', line 10 def self.enable_hornsby( = {}) include Hornsby::Helper Hornsby.load() alias_method_chain :run, :hornsby end |
Instance Method Details
#run_with_hornsby(result, &progress_block) ⇒ Object
4 5 6 7 8 |
# File 'lib/hornsby/test_unit_extensions.rb', line 4 def run_with_hornsby(result, &progress_block) Hornsby.setup(self) run_without_hornsby(result, &progress_block) Hornsby.teardown end |