Method: RSpec::Core::Notifications::ProfileNotification#slow_duration
- Defined in:
- lib/rspec/core/notifications.rb
#slow_duration ⇒ Float
Returns the time taken (in seconds) to run the slowest examples.
449 450 451 452 453 454 |
# File 'lib/rspec/core/notifications.rb', line 449 def slow_duration @slow_duration ||= slowest_examples.inject(0.0) do |i, e| i + e.execution_result.run_time end end |