aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bug_test.go6
-rw-r--r--tests/operation_iterator_test.go2
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/bug_test.go b/tests/bug_test.go
index a98cdc7f..175df1a8 100644
--- a/tests/bug_test.go
+++ b/tests/bug_test.go
@@ -29,19 +29,19 @@ func TestBugValidity(t *testing.T) {
bug1.Append(createOp)
if !bug1.IsValid() {
- t.Fatal("Bug with just a CREATE should be valid")
+ t.Fatal("Bug with just a CreateOp should be valid")
}
bug1.Append(createOp)
if bug1.IsValid() {
- t.Fatal("Bug with multiple CREATE should be invalid")
+ t.Fatal("Bug with multiple CreateOp should be invalid")
}
bug1.Commit(mockRepo)
if bug1.IsValid() {
- t.Fatal("Bug with multiple CREATE should be invalid")
+ t.Fatal("Bug with multiple CreateOp should be invalid")
}
}
diff --git a/tests/operation_iterator_test.go b/tests/operation_iterator_test.go
index 03747fa4..9c7c82b6 100644
--- a/tests/operation_iterator_test.go
+++ b/tests/operation_iterator_test.go
@@ -16,6 +16,7 @@ var (
createOp = operations.NewCreateOp(rene, "title", "message")
setTitleOp = operations.NewSetTitleOp("title2")
addCommentOp = operations.NewAddCommentOp(rene, "message2")
+ SetStatusOp = operations.NewSetStatusOp(bug.ClosedStatus)
mockRepo = repository.NewMockRepoForTest()
)
@@ -29,6 +30,7 @@ func TestOpIterator(t *testing.T) {
bug1.Append(createOp)
bug1.Append(setTitleOp)
+ bug1.Append(SetStatusOp)
bug1.Commit(mockRepo)
bug1.Append(setTitleOp)