Skip to content

Commit 9bc13e2

Browse files
committed
Test the actual error domain & code.
1 parent 8f47b33 commit 9bc13e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ObjectiveGitTests/GTRepositorySpec.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
GTRepository *badRepo = [GTRepository repositoryWithURL:[NSURL fileURLWithPath:@"fake/1235"] error:&error];
5252
expect(badRepo).to.beNil();
5353
expect(error).notTo.beNil();
54+
expect(error.domain).to.equal(GTGitErrorDomain);
55+
expect(error.code).to.equal(GIT_ENOTFOUND);
5456
});
5557
});
5658

0 commit comments

Comments
 (0)