1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-06 03:54:17 +02:00

Fix lock test.

This commit is contained in:
Aaron 2015-02-16 11:32:31 -08:00
parent f7e1ff2c8c
commit c74bb311b3

View File

@ -23,12 +23,8 @@ func TestBeforeAuth(t *testing.T) {
authboss.NewConfig()
ctx := authboss.NewContext()
if nil != L.BeforeAuth(ctx) {
t.Error("Expected it to break early.")
}
if err := L.BeforeAuth(ctx); err != nil {
t.Error(err)
if err := L.BeforeAuth(ctx); err == nil {
t.Error("Want death because user not loaded:", err)
}
ctx.User = authboss.Attributes{"locked": true}