Module: ActiveSupport::Testing::Performance::Minitest5AndGreater

Defined in:
lib/rails/perftest/active_support/testing/performance.rb

Instance Method Summary collapse

Instance Method Details

#performance_failure(e) ⇒ Object


56
57
58
59
60
61
62
63
# File 'lib/rails/perftest/active_support/testing/performance.rb', line 56

def performance_failure(e)
  case e
  when Minitest::Assertion
    self.failures << e
  else
    self.failures << Minitest::UnexpectedError.new(e)
  end
end

#runObject


51
52
53
54
# File 'lib/rails/perftest/active_support/testing/performance.rb', line 51

def run
  _performance_run
  self
end