Class: Test::Unit::UI::Console::TestRunner
- Defined in:
- lib/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb
Instance Method Summary collapse
- #finished_with_rspec(elapsed_time) ⇒ Object (also: #finished)
- #setup_mediator_with_rspec ⇒ Object (also: #setup_mediator)
- #started_with_rspec(result) ⇒ Object (also: #started)
- #test_finished_with_rspec(name) ⇒ Object (also: #test_finished)
- #test_started_with_rspec(name) ⇒ Object (also: #test_started)
Instance Method Details
#finished_with_rspec(elapsed_time) ⇒ Object Also known as: finished
38 39 40 41 42 43 |
# File 'lib/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb', line 38 def finished_with_rspec(elapsed_time) @ran_test ||= false if @ran_test finished_without_rspec(elapsed_time) end end |
#setup_mediator_with_rspec ⇒ Object Also known as: setup_mediator
47 48 49 50 51 52 53 54 |
# File 'lib/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb', line 47 def setup_mediator_with_rspec orig_io = @io @io = StringIO.new setup_mediator_without_rspec ensure @rspec_io = @io @io = orig_io end |
#started_with_rspec(result) ⇒ Object Also known as: started
10 11 12 13 |
# File 'lib/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb', line 10 def started_with_rspec(result) @result = result @need_to_output_started = true end |
#test_finished_with_rspec(name) ⇒ Object Also known as: test_finished
31 32 33 34 |
# File 'lib/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb', line 31 def test_finished_with_rspec(name) test_finished_without_rspec(name) @ran_test = true end |
#test_started_with_rspec(name) ⇒ Object Also known as: test_started
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb', line 17 def test_started_with_rspec(name) if @need_to_output_started if @rspec_io @rspec_io.rewind output(@rspec_io.read) end output("Started") @need_to_output_started = false end test_started_without_rspec(name) end |