class Respec::Formatter

Public Class Methods

new(output=nil) click to toggle source
Calls superclass method
# File lib/respec/formatter.rb, line 12
def initialize(output=nil)
  super(output)
end

Public Instance Methods

example_failed(notification) click to toggle source
# File lib/respec/formatter.rb, line 33
def example_failed(notification)
  @respec_failures << notification.example.full_description
end
start_dump() click to toggle source
# File lib/respec/formatter.rb, line 16
def start_dump
  open(Respec.failures_path, 'w') do |file|
    @failed_examples.each do |example|
      file.puts example.metadata[:full_description]
    end
  end
end