Class: RSpec::SummaryLog::FailedLogger

Inherits:
BaseLogger
  • Object
show all
Defined in:
lib/rspec/summary_log/failed_logger.rb

Instance Method Summary collapse

Methods inherited from BaseLogger

#close, #initialize

Constructor Details

This class inherits a constructor from RSpec::SummaryLog::BaseLogger

Instance Method Details

#dump_failuresObject



10
11
12
# File 'lib/rspec/summary_log/failed_logger.rb', line 10

def dump_failures(*)
  true
end

#dump_pendingObject



25
26
27
# File 'lib/rspec/summary_log/failed_logger.rb', line 25

def dump_pending(*)
  true
end

#dump_summary(*args) ⇒ Object



14
15
16
17
18
19
20
21
22
23
# File 'lib/rspec/summary_log/failed_logger.rb', line 14

def dump_summary(*args)
  lock_output do
    notification = args.first

    notification.failed_examples.each do |ex|
      output.puts(example_rerun_argument(ex))
    end
  end
  @output.flush
end

#seed(notification) ⇒ Object



29
30
31
# File 'lib/rspec/summary_log/failed_logger.rb', line 29

def seed(notification)
  true
end

#startObject



6
7
8
# File 'lib/rspec/summary_log/failed_logger.rb', line 6

def start(*)
  true
end