Add back AssertExpectations

This commit is contained in:
Ian Tan 2017-11-22 09:47:47 +08:00
parent 7aa08b9014
commit d28ab5ae89

View File

@ -136,9 +136,9 @@ func TestMockPreload(t *testing.T) {
expect.Preload("Emails").Find(&in).Returns(out) expect.Preload("Emails").Find(&in).Returns(out)
db.Preload("Emails").Find(&in) db.Preload("Emails").Find(&in)
// if err := expect.AssertExpectations(); err != nil { if err := expect.AssertExpectations(); err != nil {
// t.Error(err) t.Error(err)
// } }
if !reflect.DeepEqual(in, out) { if !reflect.DeepEqual(in, out) {
t.Error("In and out are not equal") t.Error("In and out are not equal")