Skip to content

Commit

Permalink
Fix the pushSHA test
Browse files Browse the repository at this point in the history
  • Loading branch information
tiennou committed Nov 26, 2017
1 parent f3d8e35 commit 0e4570b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ObjectiveGitTests/GTEnumeratorSpec.m
Expand Up @@ -31,10 +31,12 @@
GTReference *HEADRef = [repo headReferenceWithError:NULL];
expect(HEADRef).notTo(beNil());

[enumerator pushSHA:HEADRef.targetOID.SHA error:NULL];
BOOL success = [enumerator pushSHA:HEADRef.targetOID.SHA error:&error];
expect(@(success)).to(beTruthy());
expect(error).to(beNil());

NSUInteger count = [enumerator allObjects].count;
expect(@(count)).to(equal(@3));
expect(error).to(beNil());
});

describe(@"with a rev list", ^{
Expand Down

0 comments on commit 0e4570b

Please sign in to comment.