@@ -221,11 +221,11 @@ type User struct {
221221 Settings *Settings
222222}
223223
224- func newUser(id kallax.ULID, username, email string) (*User, error) {
224+ func newUser(id kallax.ULID, username, email string, websites []string ) (*User, error) {
225225 if strings.Contains(email, "@spam.org") {
226226 return nil, errors.New("kallax: is spam!")
227227 }
228- return &User{ID: id, Username: username, Email: email}, nil
228+ return &User{ID: id, Username: username, Email: email, Websites: websites }, nil
229229}
230230
231231type Email struct {
@@ -302,8 +302,8 @@ func (s *ModelSuite) TestModel() {
302302}
303303
304304func (s * ModelSuite ) TestCtor () {
305- s .Equal ("id kallax.ULID, username string, email string" , s .model .CtorArgs ())
306- s .Equal ("id, username, email" , s .model .CtorArgVars ())
305+ s .Equal ("id kallax.ULID, username string, email string, websites []string " , s .model .CtorArgs ())
306+ s .Equal ("id, username, email, websites " , s .model .CtorArgVars ())
307307 s .Equal ("(record *User, err error)" , s .model .CtorReturns ())
308308 s .Equal ("record, err" , s .model .CtorRetVars ())
309309}
0 commit comments