Permalink
Browse files

added clarity to README

  • Loading branch information...
1 parent 0fc92da commit b727ba228ccd21ec4e8bd472ccf47cb7c60a6232 @croaky croaky committed Oct 30, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 README.textile
View
@@ -1,12 +1,12 @@
h1. Assert Performs
This is a single Test::Unit assertion written to test performance of
-a Rails action.
+a Rails action. Meant to be run on staging before production deploys.
h2. Usage
class PerformanceTest < Test::Unit::TestCase
- self.performance_server = "localhost:3000"
+ self.performance_server = "staging.example.com"
context "a GET to users/1" do
should "be performant" do
assert_performs :get, user_path, :rate => 3,
@@ -23,6 +23,7 @@ assert_performs takes the following arguments:
* a threshold request rate (req/s)
* a timeout (in seconds)
+
assert_performs :get, '/', :rate => 3, :timeout => 5
h2. Requirements

0 comments on commit b727ba2

Please sign in to comment.