method
add_example_group
RSpec latest stable (1.3.1)
-
0 notes -
Class: Spec::Runner::Formatter::HtmlFormatter
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0 (0)
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
add_example_group(example_group)
public
Hide source
# File lib/spec/runner/formatter/html_formatter.rb, line 38 def add_example_group(example_group) super @example_group_red = false @example_group_number += 1 unless example_group_number == 1 @output.puts " </dl>" @output.puts "</div>" end @output.puts "<div class=\"example_group\">" @output.puts " <dl>" @output.puts " <dt id=\"example_group_#{example_group_number}\">#{h(example_group.description)}</dt>" @output.flush end