Advertisement
Guest User

Untitled

a guest
Dec 20th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. test "should get new" do
  2. user = users(:john)
  3. post login_url, params: { email: user.email, password: user.password }
  4.  
  5. get new_post_url
  6. assert_response :success
  7. end
  8.  
  9. post sessions_url, params: {email: users(:admin).email, password: 'password}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement