Class: YertleFormatter
- Inherits:
-
RSpec::Core::Formatters::BaseTextFormatter
- Object
- RSpec::Core::Formatters::BaseTextFormatter
- YertleFormatter
- Defined in:
- lib/yertle_formatter.rb
Instance Attribute Summary collapse
-
#slow_specs ⇒ Object
readonly
Returns the value of attribute slow_specs.
Instance Method Summary collapse
Instance Attribute Details
#slow_specs ⇒ Object (readonly)
Returns the value of attribute slow_specs.
6 7 8 |
# File 'lib/yertle_formatter.rb', line 6 def slow_specs @slow_specs end |
Instance Method Details
#dump_summary(summary_notification) ⇒ Object
17 18 19 20 |
# File 'lib/yertle_formatter.rb', line 17 def dump_summary(summary_notification) super(summary_notification) summarize_slow_specs(summary_notification) if slow_specs end |
#example_passed(notification) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/yertle_formatter.rb', line 8 def example_passed(notification) if slow_spec?(notification.example) @slow_specs = true print_turtle else print_dot end end |