Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. assert_redirected_to(post_path(Post.first))
  2.  
  3. assert_redirected_to(post_path(assigns(:post))
  4.  
  5. @post = Post.first
  6.  
  7. @post = Post.find_by(title: 'foo')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement