method
add_example_group
1.2.0 -
Show latest stable
-
0 notes -
Class: Spec::Runner::Formatter::NestedTextFormatter
- 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/nested_text_formatter.rb, line 12 def add_example_group(example_group) super example_group.nested_descriptions.each_with_index do |nested_description, i| unless nested_description == @last_nested_descriptions[i] output.puts "#{' ' * i}#{nested_description}" end end @last_nested_descriptions = example_group.nested_descriptions end