class RSpec::Queue::QueueReporter

Public Class Methods

new(reporter, queue, example) click to toggle source
Calls superclass method
# File lib/rspec/queue.rb, line 322
def initialize(reporter, queue, example)
  @queue = queue
  @example = example
  super(reporter)
end

Public Instance Methods

acknowledge() click to toggle source
# File lib/rspec/queue.rb, line 347
def acknowledge
  @queue.acknowledge(@example)
end
cancel_run!() click to toggle source
# File lib/rspec/queue.rb, line 340
def cancel_run!
  # Remove the requeued example from the list of examples ran
  # Otherwise some formatters might break because the example state is reset
  examples.pop
  nil
end
report_failure!() click to toggle source
# File lib/rspec/queue.rb, line 332
def report_failure!
  @queue.report_failure!
end
report_success!() click to toggle source
# File lib/rspec/queue.rb, line 328
def report_success!
  @queue.report_success!
end
requeue() click to toggle source
# File lib/rspec/queue.rb, line 336
def requeue
  @queue.requeue(@example)
end