resolve admin error in database
This commit is contained in:
parent
0fb4aeda3f
commit
90408f20a5
1 changed files with 0 additions and 2 deletions
|
@ -58,7 +58,6 @@ func TestUsers(t *testing.T) {
|
||||||
Email: "foo@bar.com",
|
Email: "foo@bar.com",
|
||||||
Avatar: "b9015b0857e16ac4d94a0ffd9a0b79c8",
|
Avatar: "b9015b0857e16ac4d94a0ffd9a0b79c8",
|
||||||
Active: true,
|
Active: true,
|
||||||
Admin: true,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
s.CreateUser(&user)
|
s.CreateUser(&user)
|
||||||
|
@ -71,7 +70,6 @@ func TestUsers(t *testing.T) {
|
||||||
g.Assert(user.Email).Equal(getuser.Email)
|
g.Assert(user.Email).Equal(getuser.Email)
|
||||||
g.Assert(user.Avatar).Equal(getuser.Avatar)
|
g.Assert(user.Avatar).Equal(getuser.Avatar)
|
||||||
g.Assert(user.Active).Equal(getuser.Active)
|
g.Assert(user.Active).Equal(getuser.Active)
|
||||||
g.Assert(user.Admin).Equal(getuser.Admin)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
g.It("Should Get a User By Login", func() {
|
g.It("Should Get a User By Login", func() {
|
||||||
|
|
Loading…
Reference in a new issue