Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README.md to mention needing the version parameters in specs. …

…/ht @ryanbigg
  • Loading branch information...
commit f0a3bbd4d597ba9e0edc3f92b3425bfe66f84dbf 1 parent 2190893
@Sutto authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
10 README.md
@@ -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:
+
+```ruby
+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`.
Please sign in to comment.
Something went wrong with that request. Please try again.