diff options
author | Gonçalo Silva <goncalossilva@gmail.com> | 2011-05-09 01:00:04 +0100 |
---|---|---|
committer | Gonçalo Silva <goncalossilva@gmail.com> | 2011-05-09 01:00:04 +0100 |
commit | a43f95d235190139159dab3cf4863252b0e9bf0e (patch) | |
tree | 79c3b57a22a5c417d6d0cd2533d175cc30cc8085 /railties/lib/rails/generators/test_unit/performance | |
parent | 181c8422d776bb85cb18a7023d3524307a31417c (diff) | |
download | rails-a43f95d235190139159dab3cf4863252b0e9bf0e.tar.gz rails-a43f95d235190139159dab3cf4863252b0e9bf0e.tar.bz2 rails-a43f95d235190139159dab3cf4863252b0e9bf0e.zip |
added a note about profiling options to the generators
Diffstat (limited to 'railties/lib/rails/generators/test_unit/performance')
-rw-r--r-- | railties/lib/rails/generators/test_unit/performance/templates/performance_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/test_unit/performance/templates/performance_test.rb b/railties/lib/rails/generators/test_unit/performance/templates/performance_test.rb index e827aa918f..14a878328b 100644 --- a/railties/lib/rails/generators/test_unit/performance/templates/performance_test.rb +++ b/railties/lib/rails/generators/test_unit/performance/templates/performance_test.rb @@ -2,7 +2,10 @@ require 'test_helper' require 'rails/performance_test_help' class <%= class_name %>Test < ActionDispatch::PerformanceTest - # Replace this with your real tests. + # Refer to the documentation for all available options + # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory] + # :output => 'tmp/performance', :formats => [:flat] } + def test_homepage get '/' end |