Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- assert_redirected_to(post_path(Post.first))
- assert_redirected_to(post_path(assigns(:post))
- @post = Post.first
- @post = Post.find_by(title: 'foo')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement