Class: Test::Unit::UI::RDox::TestRunner

Inherits:
SpecDox::TestRunner show all
Defined in:
lib/test/spec/rdox.rb

Instance Method Summary collapse

Instance Method Details

#finished(elapsed_time) ⇒ Object



14
15
16
17
# File 'lib/test/spec/rdox.rb', line 14

def finished(elapsed_time)
  nl
  output_result
end

#indent(depth) ⇒ Object



19
20
21
22
# File 'lib/test/spec/rdox.rb', line 19

def indent(depth)
  @prefix = ""
  @headprefix = "==" + "=" * depth
end

#output_heading(heading) ⇒ Object



6
7
8
# File 'lib/test/spec/rdox.rb', line 6

def output_heading(heading)
  output "#{@headprefix} #{heading}"
end

#output_item(item) ⇒ Object



10
11
12
# File 'lib/test/spec/rdox.rb', line 10

def output_item(item)
  output_no_nl "* #{item}"
end