Skip to content

Commit

Permalink
added a note about profiling options to the generators
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalossilva committed May 9, 2011
1 parent 181c842 commit a43f95d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
@@ -1,8 +1,11 @@
require 'test_helper'
require 'rails/performance_test_help'

# Profiling results for each test method are written to tmp/performance.
class BrowsingTest < ActionDispatch::PerformanceTest
# 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
Expand Down
Expand Up @@ -2,7 +2,10 @@
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
Expand Down

0 comments on commit a43f95d

Please sign in to comment.