diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-13 00:21:03 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-14 02:04:38 -0700 |
commit | eab71208db1afead6803501c8d51d77625e5ad6e (patch) | |
tree | 194e4911a90e5edf7af4c3c2990d6c0ad3645791 /railties/helpers/performance_test.rb | |
parent | ba0f38f89e8473490270957849d7d5b06f6ee65b (diff) | |
download | rails-eab71208db1afead6803501c8d51d77625e5ad6e.tar.gz rails-eab71208db1afead6803501c8d51d77625e5ad6e.tar.bz2 rails-eab71208db1afead6803501c8d51d77625e5ad6e.zip |
Performance: integration test benchmarking and profiling. [Jeremy Kemper]
Diffstat (limited to 'railties/helpers/performance_test.rb')
-rw-r--r-- | railties/helpers/performance_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/railties/helpers/performance_test.rb b/railties/helpers/performance_test.rb new file mode 100644 index 0000000000..d39f639305 --- /dev/null +++ b/railties/helpers/performance_test.rb @@ -0,0 +1,11 @@ +ENV['RAILS_ENV'] ||= 'test' +require "#{File.dirname(__FILE__)}/../../config/environment" +require 'test/unit' +require 'action_controller/performance_test' + +# Profiling results for each test method are written to tmp/performance. +class BrowsingTest < ActionController::PerformanceTest + def test_homepage + get '/' + end +end |