diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-18 16:41:09 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-18 16:41:09 +0200 |
commit | cfa11372cbcbb5f4553f3dcd8897d5f5207c6507 (patch) | |
tree | a5136685378a9c3310c86700bbeaf34338281f9a /tests/operation_iterator_test.go | |
parent | ba3281dc9918fa49f10c2a166b5b631a931d2d51 (diff) | |
download | git-bug-cfa11372cbcbb5f4553f3dcd8897d5f5207c6507.tar.gz |
implement label op+command
Diffstat (limited to 'tests/operation_iterator_test.go')
-rw-r--r-- | tests/operation_iterator_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/operation_iterator_test.go b/tests/operation_iterator_test.go index 66e1ca1b..bcbcfb08 100644 --- a/tests/operation_iterator_test.go +++ b/tests/operation_iterator_test.go @@ -17,6 +17,7 @@ var ( setTitleOp = operations.NewSetTitleOp(rene, "title2") addCommentOp = operations.NewAddCommentOp(rene, "message2") setStatusOp = operations.NewSetStatusOp(rene, bug.ClosedStatus) + labelChangeOp = operations.NewLabelChangeOperation(rene, []bug.Label{"added"}, []bug.Label{"removed"}) mockRepo = repository.NewMockRepoForTest() ) @@ -30,7 +31,9 @@ func TestOpIterator(t *testing.T) { bug1.Append(createOp) bug1.Append(setTitleOp) + bug1.Append(addCommentOp) bug1.Append(setStatusOp) + bug1.Append(labelChangeOp) bug1.Commit(mockRepo) bug1.Append(setTitleOp) @@ -50,7 +53,7 @@ func TestOpIterator(t *testing.T) { counter++ } - if counter != 9 { + if counter != 11 { t.Fatalf("Wrong count of value iterated (%d instead of 8)", counter) } } |