diff --git a/test/integration/authentication_test.rb b/test/integration/authentication_test.rb index c416898..2a179bd 100644 --- a/test/integration/authentication_test.rb +++ b/test/integration/authentication_test.rb @@ -1,7 +1,8 @@ require 'test_helper' class AuthenticationFlowTest < ActionDispatch::IntegrationTest - + include Devise::Test::IntegrationHelpers + setup do @user = User.first end @@ -11,7 +12,7 @@ get root_path assert_response :success - sign_in + sign_in @user # Make sure that the user is sent to the page that lists their plans assert_response :success @@ -28,7 +29,7 @@ get root_path assert_response :success - sign_in + sign_in @user delete destroy_user_session_path @@ -63,6 +64,7 @@ private # ---------------------------------------------------------- +=begin def sign_in post user_session_path, user: { email: @user.email, @@ -77,4 +79,5 @@ follow_redirect! end end +=end end