Class: Validator::List

Inherits:
FormatterBase show all
Defined in:
spec/support/formatters/list.rb

Instance Method Summary collapse

Methods inherited from FormatterBase

#close, #colorize, #dump_failures, #dump_pending, #dump_sentinel_summary, #dump_sentinel_warnings, #dump_summary, #example_group_finished, #example_group_started, #initialize, #start

Constructor Details

This class inherits a constructor from Validator::FormatterBase

Instance Method Details

#example_failed(notification) ⇒ Object



15
16
17
# File 'spec/support/formatters/list.rb', line 15

def example_failed notification
  @output << colorize("#{notification.example.full_description}\n",:failure)
end

#example_passed(notification) ⇒ Object

ExampleNotification



11
12
13
# File 'spec/support/formatters/list.rb', line 11

def example_passed notification # ExampleNotification
  @output << colorize("#{notification.example.full_description}\n",:success)
end