Class: RSpec::Core::Formatters::DocumentationFormatter
- Inherits:
-
Object
- Object
- RSpec::Core::Formatters::DocumentationFormatter
- Defined in:
- lib/postspec_helper.rb
Instance Method Summary collapse
Instance Method Details
#example_group_finished(notification) ⇒ Object
102 103 104 105 106 107 |
# File 'lib/postspec_helper.rb', line 102 def example_group_finished(notification) description = notification.group.description.strip if description != "" @group_level -= 1 if @group_level > 0 end end |
#example_group_started(notification) ⇒ Object
93 94 95 96 97 98 99 100 |
# File 'lib/postspec_helper.rb', line 93 def example_group_started(notification) description = notification.group.description.strip if description != "" output.puts if @group_level == 0 output.puts "#{current_indentation}#{notification.group.description.strip}" @group_level += 1 end end |