Class: RSpec::Queue::OrderRecorder
- Inherits:
-
Core::Formatters::BaseFormatter
- Object
- Core::Formatters::BaseFormatter
- RSpec::Queue::OrderRecorder
- Defined in:
- lib/rspec/queue/order_recorder.rb
Instance Method Summary collapse
- #example_started(notification) ⇒ Object
-
#initialize ⇒ OrderRecorder
constructor
A new instance of OrderRecorder.
Constructor Details
#initialize ⇒ OrderRecorder
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 |