Parent

Included Modules

Class/Module Index [+]

Quicksearch

RSpec::Core::Formatters::HtmlPrinter

Public Class Methods

new(output) click to toggle source
# File lib/rspec/core/formatters/html_printer.rb, line 8
def initialize(output)
  @output = output
end

Public Instance Methods

flush() click to toggle source
# File lib/rspec/core/formatters/html_printer.rb, line 73
def flush
  @output.flush
end
make_example_group_header_red(group_id) click to toggle source
# File lib/rspec/core/formatters/html_printer.rb, line 90
def make_example_group_header_red(group_id)
  @output.puts "    <script type=\"text/javascript\">makeRed('div_group_#{group_id}');</script>"
  @output.puts "    <script type=\"text/javascript\">makeRed('example_group_#{group_id}');</script>"
end
make_example_group_header_yellow(group_id) click to toggle source
# File lib/rspec/core/formatters/html_printer.rb, line 95
def make_example_group_header_yellow(group_id)
  @output.puts "    <script type=\"text/javascript\">makeYellow('div_group_#{group_id}');</script>"
  @output.puts "    <script type=\"text/javascript\">makeYellow('example_group_#{group_id}');</script>"
end
make_header_red() click to toggle source
# File lib/rspec/core/formatters/html_printer.rb, line 82
def make_header_red
  @output.puts "    <script type=\"text/javascript\">makeRed('rspec-header');</script>"
end
make_header_yellow() click to toggle source
# File lib/rspec/core/formatters/html_printer.rb, line 86
def make_header_yellow
  @output.puts "    <script type=\"text/javascript\">makeYellow('rspec-header');</script>"
end
move_progress( percent_done ) click to toggle source
# File lib/rspec/core/formatters/html_printer.rb, line 77
def move_progress( percent_done )
  @output.puts "    <script type=\"text/javascript\">moveProgressBar('#{percent_done}');</script>"
  @output.flush
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.