aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing/performance.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/testing/performance.rb')
-rw-r--r--activesupport/lib/active_support/testing/performance.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb
index 3195750841..495fcea381 100644
--- a/activesupport/lib/active_support/testing/performance.rb
+++ b/activesupport/lib/active_support/testing/performance.rb
@@ -21,6 +21,7 @@ module ActiveSupport
def self.included(base)
base.superclass_delegating_accessor :profile_options
+ base.profile_options = {}
end
def full_profile_options
@@ -44,7 +45,7 @@ module ActiveSupport
run_profile(klass.new)
result.add_run
else
- puts '%20s: unsupported' % @metric.name
+ puts '%20s: unsupported' % metric_name
end
end
end