method
example_group_started
1.3.1 -
Show latest stable
-
0 notes -
Class: Spec::Runner::Formatter::NestedTextFormatter
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
example_group_started(example_group)
public
Hide source
# File lib/spec/runner/formatter/nested_text_formatter.rb, line 15 def example_group_started(example_group) super example_group.nested_descriptions.each_with_index do |nested_description, i| unless example_group.nested_descriptions[0..i] == @last_nested_descriptions[0..i] output.puts "#{INDENT*i}#{nested_description}" end end @last_nested_descriptions = example_group.nested_descriptions end