Setup user login/logout #21
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ class SessionTest < ActiveSupport::TestCase
|
||||||
def test_save_when_not_exists
|
def test_save_when_not_exists
|
||||||
session = Session.new(email: "fake@example.org", password: "secret")
|
session = Session.new(email: "fake@example.org", password: "secret")
|
||||||
|
|
||||||
refute session.save
|
assert_not session.save
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_save_when_password_incorrect
|
def test_save_when_password_incorrect
|
||||||
|
@ -20,6 +20,6 @@ class SessionTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
session = Session.new(email: user.email, password: "bad_password")
|
session = Session.new(email: user.email, password: "bad_password")
|
||||||
|
|
||||||
refute session.save
|
assert_not session.save
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue