Method: Fivemat::RSpec3#example_group_finished

Defined in:
lib/fivemat/rspec3.rb

#example_group_finished(event) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/fivemat/rspec3.rb', line 44

def example_group_finished(event)
  @group_level -= 1

  if @group_level.zero?
    print_elapsed_time output, @start_time
    output.puts

    failed_notifications.each_with_index do |failure, index|
      output.puts failure.fully_formatted(@index_offset + index + 1)
    end

    @index_offset += failed_notifications.size
    failed_notifications.clear
  end
end