From 1662e297ee1f2b1857b5e9937cb496b8390394a0 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Thu, 23 Oct 2008 19:14:42 +0530 Subject: Add release notes and stuff --- .../guides/html/benchmarking_and_profiling.html | 25 ++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'railties/doc/guides/html/benchmarking_and_profiling.html') diff --git a/railties/doc/guides/html/benchmarking_and_profiling.html b/railties/doc/guides/html/benchmarking_and_profiling.html index 0a2c995580..9bd1c10dc8 100644 --- a/railties/doc/guides/html/benchmarking_and_profiling.html +++ b/railties/doc/guides/html/benchmarking_and_profiling.html @@ -497,21 +497,24 @@ http://www.gnu.org/software/src-highlite --> by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> -
[User profiling_tester (master)]$ script/generate performance_test homepage
+
[lifo@null application (master)]$ script/generate performance_test homepage
 

This will generate test/performance/homepage_test.rb:

-
-
require 'test_helper'
-require 'performance_test_help'
+
+
require 'test_helper'
+require 'performance_test_help'
 
-class HomepageTest < ActionController::PerformanceTest
-  # Replace this with your real tests.
-  def test_homepage
-    get '/'
-  end
-end
-
+class HomepageTest < ActionController::PerformanceTest + # Replace this with your real tests. + def test_homepage + get '/' + end +end +

Which you can modify to suit your needs.

4.6. Running tests

-- cgit v1.2.3