From 8c06f3ff4f92ce7ff2e3836fc7e58edcc6832330 Mon Sep 17 00:00:00 2001 From: Ian Tan Date: Sat, 18 Nov 2017 21:23:55 +0800 Subject: [PATCH] Fix variadic arguments --- expecter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }