method
add_example_group
1.1.4 -
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 13 def add_example_group(example_group) super current_nested_example_groups = described_example_group_chain current_nested_example_groups.each_with_index do |nested_example_group, i| unless nested_example_group == previous_nested_example_groups[i] output.puts "#{' ' * i}#{nested_example_group.description_args}" end end @previous_nested_example_groups = described_example_group_chain end