Class: EnhancedDocumentationFormatter
- Inherits:
-
RSpec::Core::Formatters::DocumentationFormatter
- Object
- RSpec::Core::Formatters::DocumentationFormatter
- EnhancedDocumentationFormatter
- Defined in:
- lib/pludoni_rspec/formatter.rb
Class Attribute Summary collapse
-
.threshold_for_bad ⇒ Object
Returns the value of attribute threshold_for_bad.
-
.threshold_for_good ⇒ Object
Returns the value of attribute threshold_for_good.
Instance Method Summary collapse
Class Attribute Details
.threshold_for_bad ⇒ Object
Returns the value of attribute threshold_for_bad.
9 10 11 |
# File 'lib/pludoni_rspec/formatter.rb', line 9 def threshold_for_bad @threshold_for_bad end |
.threshold_for_good ⇒ Object
Returns the value of attribute threshold_for_good.
9 10 11 |
# File 'lib/pludoni_rspec/formatter.rb', line 9 def threshold_for_good @threshold_for_good end |
Instance Method Details
#example_group_started(notification) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/pludoni_rspec/formatter.rb', line 14 def example_group_started(notification) output.puts if @group_level == 0 filename = if @group_level == 0 RSpec::Core::Formatters::ConsoleCodes.wrap(notification.group.file_path, :gray) end output.puts "#{current_indentation}#{notification.group.description.strip} #{filename}" @group_level += 1 end |