aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorGonçalo Silva <goncalossilva@gmail.com>2011-03-24 23:57:57 +0000
committerGonçalo Silva <goncalossilva@gmail.com>2011-03-24 23:57:57 +0000
commita6e22229b9501f846185306c49009404b4f8466e (patch)
tree05e55ff46be7ed677391050ab6ae93d9a7328c31 /actionpack
parent23be2c613490a06170ae50a72889957b006d36a7 (diff)
downloadrails-a6e22229b9501f846185306c49009404b4f8466e.tar.gz
rails-a6e22229b9501f846185306c49009404b4f8466e.tar.bz2
rails-a6e22229b9501f846185306c49009404b4f8466e.zip
move "check for ruby-prof" from AD/testing/performance_test to AS/testing/performance, where it is actually required
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/testing/performance_test.rb22
1 files changed, 9 insertions, 13 deletions
diff --git a/actionpack/lib/action_dispatch/testing/performance_test.rb b/actionpack/lib/action_dispatch/testing/performance_test.rb
index e7aeb45fb3..465bf40568 100644
--- a/actionpack/lib/action_dispatch/testing/performance_test.rb
+++ b/actionpack/lib/action_dispatch/testing/performance_test.rb
@@ -1,17 +1,13 @@
require 'active_support/testing/performance'
-begin
- module ActionDispatch
- # An integration test that runs a code profiler on your test methods.
- # Profiling output for combinations of each test method, measurement, and
- # output format are written to your tmp/performance directory.
- #
- # By default, process_time is measured and both flat and graph_html output
- # formats are written, so you'll have two output files per test method.
- class PerformanceTest < ActionDispatch::IntegrationTest
- include ActiveSupport::Testing::Performance
- end
+module ActionDispatch
+ # An integration test that runs a code profiler on your test methods.
+ # Profiling output for combinations of each test method, measurement, and
+ # output format are written to your tmp/performance directory.
+ #
+ # By default, process_time is measured and both flat and graph_html output
+ # formats are written, so you'll have two output files per test method.
+ class PerformanceTest < ActionDispatch::IntegrationTest
+ include ActiveSupport::Testing::Performance
end
-rescue NameError
- $stderr.puts "Specify ruby-prof as application's dependency in Gemfile to run benchmarks."
end