Skip to content

Instantly share code, notes, and snippets.

@sfkaos
Forked from them0nk/rspec_rails_cheetsheet.rb
Created February 24, 2014 21:48
Show Gist options
  • Save sfkaos/9197884 to your computer and use it in GitHub Desktop.
Save sfkaos/9197884 to your computer and use it in GitHub Desktop.
#Rendering & Redirecting
response.should render_template(:index)
response.should redirect_to(movies_path)
#Matching
response.body.should have_content("Hello world")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment