aboutsummaryrefslogtreecommitdiffstats
path: root/tests/operation_iterator_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/operation_iterator_test.go')
-rw-r--r--tests/operation_iterator_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/operation_iterator_test.go b/tests/operation_iterator_test.go
index e41fff99..b2f01513 100644
--- a/tests/operation_iterator_test.go
+++ b/tests/operation_iterator_test.go
@@ -3,6 +3,7 @@ package tests
import (
"github.com/MichaelMure/git-bug/bug"
"github.com/MichaelMure/git-bug/bug/operations"
+ "github.com/MichaelMure/git-bug/repository"
"testing"
)
@@ -14,6 +15,7 @@ var (
createOp = operations.NewCreateOp(rene, "title", "message")
setTitleOp = operations.NewSetTitleOp("title2")
+ mockRepo = repository.NewMockRepoForTest()
)
func TestOpIterator(t *testing.T) {
@@ -26,12 +28,12 @@ func TestOpIterator(t *testing.T) {
bug1.Append(createOp)
bug1.Append(setTitleOp)
- bug1.Commit()
+ bug1.Commit(mockRepo)
bug1.Append(setTitleOp)
bug1.Append(setTitleOp)
bug1.Append(setTitleOp)
- bug1.Commit()
+ bug1.Commit(mockRepo)
bug1.Append(setTitleOp)
bug1.Append(setTitleOp)