Method: RSpec::Core::Notifications::SummaryNotification#example_count

Defined in:
lib/rspec/core/notifications.rb

#example_countFixnum

Returns the number of examples run.

Returns:

  • (Fixnum)

    the number of examples run

[View source]

306
307
308
# File 'lib/rspec/core/notifications.rb', line 306

def example_count
  @example_count ||= examples.size
end