class RspecNumberedDocumentation::Formatter
Rspec formatter which prefixes the documentation formatter with line numbers indicating the order of test execution.
Public Class Methods
new(output)
click to toggle source
Calls superclass method
# File lib/rspec_numbered_documentation/formatter.rb, line 10 def initialize(output) super(output) @example_number = 0 end
Public Instance Methods
example_started(_notification)
click to toggle source
# File lib/rspec_numbered_documentation/formatter.rb, line 15 def example_started(_notification) @example_number += 1 output.print "#{@example_number}: " end