class PrettyFailFormatter
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/rspec-pretty_fail_formatter.rb, line 9 def initialize(*args) @failure_index = 0 super end
Public Instance Methods
dump_failures(notification)
click to toggle source
# File lib/rspec-pretty_fail_formatter.rb, line 21 def dump_failures(notification) return # already printed them inline end
example_failed(notification)
click to toggle source
# File lib/rspec-pretty_fail_formatter.rb, line 14 def example_failed(notification) @failure_index += 1 output.print RSpec::Core::Formatters::ConsoleCodes.wrap('F', :failure) output.puts output.puts notification.fully_formatted(@failure_index) end