Method: RSpec3#start

Defined in:
lib/nyan_cat_formatter/rspec3.rb

#start(notification) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/nyan_cat_formatter/rspec3.rb', line 18

def start(notification)
  # TODO: Lazy fix for specs.
  if notification.kind_of?(Integer)
    super(OpenStruct.new(:count => notification))
  else
    super(notification)
  end

  @current = @color_index = @passing_count = @failure_count = @pending_count = 0
  @example_results = []
  @failed_examples = []
  @pending_examples = []
end