Class: RSpec::Queue::OrderRecorder

Inherits:
Core::Formatters::BaseFormatter
  • Object
show all
Defined in:
lib/rspec/queue/order_recorder.rb

Instance Method Summary collapse

Constructor Details

#initializeOrderRecorder

Returns a new instance of OrderRecorder.



9
10
11
12
# File 'lib/rspec/queue/order_recorder.rb', line 9

def initialize(*)
  super
  output.sync = true
end

Instance Method Details

#example_started(notification) ⇒ Object



14
15
16
17
# File 'lib/rspec/queue/order_recorder.rb', line 14

def example_started(notification)
  return if notification.is_a?(RSpec::Core::Notifications::SkippedExampleNotification)
  output.write("#{notification.example.id}\n")
end