diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-13 21:21:24 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-13 21:21:24 +0200 |
commit | 1779a0f3b92d58654b43444addeaf437a64d77a8 (patch) | |
tree | 9f973413454894f0456d7379425070d468712242 /tests/operation_iterator_test.go | |
parent | 289f8d53ee960d35c1f0c42e8753ad536737b875 (diff) | |
download | git-bug-1779a0f3b92d58654b43444addeaf437a64d77a8.tar.gz |
serialize a Bug to git as a blob+tree+commit+ref
Diffstat (limited to 'tests/operation_iterator_test.go')
-rw-r--r-- | tests/operation_iterator_test.go | 6 |
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) |