Closed Pauloparakleto closed 3 years ago
With devise_token_auth you just need to use
let!(:user){create(:user)}
let!(:user_headers){user.create_new_auth_token}
And pass the header together with params like:
get your_path, params: { some: params }, headers: user_headers
Devise api way