lib/rails/perftest/commands/benchmarker.rb in rails-perftest-0.0.1 vs lib/rails/perftest/commands/benchmarker.rb in rails-perftest-0.0.2
- old
+ new
@@ -1,11 +1,11 @@
require 'optparse'
require 'rails/test_help'
require 'rails/performance_test_help'
-ARGV.push('--benchmark') # HAX
+ENV["BENCHMARK_TESTS"] = '1'
+
require 'rails/perftest/active_support/testing/performance'
-ARGV.pop
def options
options = {}
defaults = ActiveSupport::Testing::Performance::DEFAULTS