lib/rails/commands/benchmarker.rb in railties-3.2.13 vs lib/rails/commands/benchmarker.rb in railties-3.2.14.rc1
- old
+ new
@@ -1,12 +1,11 @@
require 'optparse'
require 'rails/test_help'
require 'rails/performance_test_help'
-ARGV.push('--benchmark') # HAX
+ENV["BENCHMARK_TESTS"] = '1'
require 'active_support/testing/performance'
-ARGV.pop
def options
options = {}
defaults = ActiveSupport::Testing::Performance::DEFAULTS
@@ -29,6 +28,7 @@
def test_#{expression.parameterize('_')}
#{expression}
end
RUBY
end
+ ARGV.clear
end