Setup user login/logout #21

Merged
atomaka merged 5 commits from user-session into main 2024-08-01 21:41:43 -04:00
Showing only changes of commit 939e0c5306 - Show all commits

View file

@ -12,7 +12,7 @@ class SessionTest < ActiveSupport::TestCase
def test_save_when_not_exists
session = Session.new(email: "fake@example.org", password: "secret")
refute session.save
assert_not session.save
end
def test_save_when_password_incorrect
@ -20,6 +20,6 @@ class SessionTest < ActiveSupport::TestCase
session = Session.new(email: user.email, password: "bad_password")
refute session.save
assert_not session.save
end
end