Skip to content

Instantly share code, notes, and snippets.

@svs
Created October 5, 2012 05:18
Show Gist options
  • Save svs/3838232 to your computer and use it in GitHub Desktop.
Save svs/3838232 to your computer and use it in GitHub Desktop.
Standard RSpec Controller Test Output
ItemsController
DELETE destroy
destroys the requested item
redirects to the items list
GET show
assigns the requested item as @item
GET new
assigns a new item as @item
POST create
with valid params
redirects to the created item
assigns a newly created item as @item
creates a new Item
with invalid params
assigns a newly created but unsaved item as @item
re-renders the 'new' template
PUT update
with valid params
redirects to the item
assigns the requested item as @item
updates the requested item
with invalid params
assigns the item as @item
re-renders the 'edit' template
GET edit
assigns the requested item as @item
GET index
assigns all items as @items
Finished in 0.3961 seconds
16 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment