Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rails_helper'
- feature "Information user", type: "request" do
- it "Show information of an user" do
- # login
- params = { email: @user.email, password: "12345678" }
- post "/api/v1/auth/sign_in", params.to_json, { 'CONTENT_TYPE' => 'application/json', 'ACCEPT' => 'application/json' }
- expect(response.status).to eq(200)
- body = response.body
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement