Browse files

Update to mention needing the version parameters in specs. …

…/ht @ryanbigg
  • Loading branch information...
Sutto committed Mar 21, 2012
1 parent 2190893 commit f0a3bbd4d597ba9e0edc3f92b3425bfe66f84dbf
Showing with 10 additions and 0 deletions.
  1. +10 −0
@@ -338,6 +338,16 @@ When the user hits the index endpoint, it will generate an expiry-based caching
## Using with RSpec
+When testing controllers written using RocketPants, your normal rails approach should work.
+The only difference one needs to take into the account is the need to specify the `:version`
+parameter on any http requests, e.g:
+get :index, :version => 1
+Otherwise it will raise an exception.
RocketPants includes a set of helpers to make testing controllers built on `RocketPants::Base` simpler.
* `be_singular_resource` - Checks the response is a single resource - e.g. `response.should be_siingular_resource`.

0 comments on commit f0a3bbd

Please sign in to comment.