Skip to content

Commit cd4e10b

Browse files
committed
Test.
1 parent 3496bbf commit cd4e10b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ObjectiveGitTests/GTCommitSpec.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@
5959
expect(commit.parents.count).to.equal(2);
6060
});
6161

62+
it(@"can identify merges", ^{
63+
NSError *error;
64+
NSString *commitSHA = @"a4a7dce85cf63874e984719f4fdd239f5145052f";
65+
GTCommit *commit = [repository lookUpObjectBySHA:commitSHA error:&error];
66+
expect(commit).notTo.beNil();
67+
68+
expect(commit.merge).to.beTruthy();
69+
});
70+
6271
afterEach(^{
6372
[self tearDown];
6473
});

0 commit comments

Comments
 (0)