Permalink
Browse files

adding a README

  • Loading branch information...
1 parent 2f57225 commit 386e73ebeab4fa54f00ce8162efaf540b8088ae5 @croaky croaky committed Oct 30, 2008
Showing with 18 additions and 0 deletions.
  1. +18 −0 README.textile
View
@@ -0,0 +1,18 @@
+h1. Assert Performs
+
+This is a single Test::Unit assertion written to test performance of
+a Rails action.
+
+h2. Usage
+
+ class PerformanceTest < Test::Unit::TestCase
+ self.performance_server = "localhost:3000"
+ context "a GET to users/1" do
+ should "be performant" do
+ assert_performs :get, user_path, :rate => 2,
+ :timeout => 5
+ :id => 1 # extra params
+ end
+ end
+ end
+

0 comments on commit 386e73e

Please sign in to comment.