Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'test_helper'
- feature "Authentication" do
- describe "#create" do
- it "logs_in user with valid email+password" do
- user = User.create!(
- email: "user_1@domain.com",
- password: "password123",
- password_confirmation: "password123"
- )
- post api_v1_user_session_path, {
- email: user.email,
- password: user.password
- }
- assert_equal 200, last_response.status
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement