Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. require 'rails_helper'
  2.  
  3. feature "Information user", type: "request" do
  4.  
  5. it "Show information of an user" do
  6. # login
  7. params = { email: @user.email, password: "12345678" }
  8. post "/api/v1/auth/sign_in", params.to_json, { 'CONTENT_TYPE' => 'application/json', 'ACCEPT' => 'application/json' }
  9. expect(response.status).to eq(200)
  10. body = response.body
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement