diff --git a/expecter.go b/expecter.go index ebe36269..87b716a7 100644 --- a/expecter.go +++ b/expecter.go @@ -117,7 +117,7 @@ func (h *Expecter) AssertExpectations() error { // First triggers a Query func (h *Expecter) First(out interface{}, where ...interface{}) ExpectedQuery { - h.gorm.First(out) + h.gorm.First(out, where...) return h.adapter.ExpectQuery(regexp.QuoteMeta(h.recorder.stmt)) }