Skip to content

Commit 927cc49

Browse files
committed
Fix tests for GTNote
1 parent 16f980f commit 927cc49

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ObjectiveGitTests/GTNoteSpec.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
expect(note).notTo(beNil());
4747
expect(err).to(beNil());
4848

49-
[repository enumerateNotesWithReferenceName:nil error:&err usingBlock:^(GTNote *note, GTObject *object, BOOL *stop) {
49+
[repository enumerateNotesWithReferenceName:nil error:&err usingBlock:^(GTNote *note, GTObject *object, NSError *error, BOOL *stop) {
50+
expect(error).to(beNil());
5051
expect(note).notTo(beNil());
5152
expect(object).notTo(beNil());
5253

@@ -72,7 +73,7 @@
7273

7374
NSMutableArray *notes = [NSMutableArray arrayWithCapacity:0];
7475

75-
[repository enumerateNotesWithReferenceName:nil error:&err usingBlock:^(GTNote *note, GTObject *object, BOOL *stop) {
76+
[repository enumerateNotesWithReferenceName:nil error:&err usingBlock:^(GTNote *note, GTObject *object, NSError *error, BOOL *stop) {
7677
[notes addObject:note];
7778
}];
7879

0 commit comments

Comments
 (0)