public
Fork of bmizerany/sinatra
Description: Classy web-development dressed in a DSL
Homepage: http://sinatrarb.com
Clone URL: git://github.com/JackDanger/sinatra.git
Search Repo:
better docs on testing
Blake Mizerany (author)
Tue Apr 15 19:10:48 -0700 2008
commit  28b12858d67563dafca1f328e7251fa3c6f63ad0
tree    8fdb5f7b6982f37010145d691adf9964e22c64b3
parent  d7e9f3002a49f26c72fae382484b0677dd18292d
...
345
346
347
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
349
350
...
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
0
@@ -345,6 +345,20 @@
0
 
0
 = Testing
0
 
0
+=== Methods
0
+
0
+ get_it path, params
0
+ get_it path, params.merge(:env => { 'HTTP_HOST' => 'www.sinatrarb.com' }) or
0
+ get_it path, params.merge(:env => { :host => 'www.sinatrarb.com' })
0
+
0
+RESTful:
0
+
0
+ post_it '/foo', '<myxml></myxml>', 'HTTP_ACCEPT' => 'application/xml'
0
+
0
+also works with:
0
+
0
+ get_it, post_it, put_it, delete_it, head_it
0
+
0
 === Test/Unit
0
 
0
   require 'my_sinatra_app'

Comments

    No one has commented yet.