aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing/performance
diff options
context:
space:
mode:
authorGonçalo Silva <goncalossilva@gmail.com>2011-03-28 04:03:47 +0100
committerGonçalo Silva <goncalossilva@gmail.com>2011-03-28 04:03:47 +0100
commit09bd0eeefc5cb3c2cb26e17b486dd0965afbf4d5 (patch)
treecc8d74460deb72eea4abb3a03d597a6e2af9db02 /activesupport/lib/active_support/testing/performance
parentc401ad98536b8038bf20f000b41e3f185de0ab7c (diff)
downloadrails-09bd0eeefc5cb3c2cb26e17b486dd0965afbf4d5.tar.gz
rails-09bd0eeefc5cb3c2cb26e17b486dd0965afbf4d5.tar.bz2
rails-09bd0eeefc5cb3c2cb26e17b486dd0965afbf4d5.zip
fixed a couple of hidden bugs
Diffstat (limited to 'activesupport/lib/active_support/testing/performance')
-rw-r--r--activesupport/lib/active_support/testing/performance/ruby.rb2
-rw-r--r--activesupport/lib/active_support/testing/performance/ruby/yarv.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/testing/performance/ruby.rb b/activesupport/lib/active_support/testing/performance/ruby.rb
index a8b26b85eb..36dc75ca8f 100644
--- a/activesupport/lib/active_support/testing/performance/ruby.rb
+++ b/activesupport/lib/active_support/testing/performance/ruby.rb
@@ -10,7 +10,7 @@ module ActiveSupport
module Performance
DEFAULTS.merge!(
if ARGV.include?('--benchmark')
- ({:metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time]}
+ {:metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time]}
else
{ :min_percent => 0.01,
:metrics => [:process_time, :memory, :objects],
diff --git a/activesupport/lib/active_support/testing/performance/ruby/yarv.rb b/activesupport/lib/active_support/testing/performance/ruby/yarv.rb
index ed2b8d6803..38b6e67767 100644
--- a/activesupport/lib/active_support/testing/performance/ruby/yarv.rb
+++ b/activesupport/lib/active_support/testing/performance/ruby/yarv.rb
@@ -1,5 +1,5 @@
begin
- require 'test-unit'
+ gem 'test-unit'
rescue LoadError
$stderr.puts 'Specify test-unit as application\'s dependency in Gemfile to run benchmarks.'
exit