Class: FailedBackgroundProcessReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec-background-process/background_process_helpers.rb

Overview

RSpec custom reporter config.add_formatter FailedBackgroundProcessReporter

Instance Method Summary collapse

Constructor Details

#initialize(output) ⇒ FailedBackgroundProcessReporter

Returns a new instance of FailedBackgroundProcessReporter.



54
55
56
# File 'lib/rspec-background-process/background_process_helpers.rb', line 54

def initialize(output)
	@output = output
end

Instance Method Details

#example_failed(example) ⇒ Object



58
59
60
# File 'lib/rspec-background-process/background_process_helpers.rb', line 58

def example_failed(example)
	@output << BackgroundProcessCoreHelpers.report_failed_instance
end