Skip to content

Commit c978f21

Browse files
committed
Test the ssh support availability
1 parent 91e11e3 commit c978f21

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ObjectiveGitTests/Libgit2FeaturesSpec.m

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,17 @@
3030
expect(@(git_features & GIT_FEATURE_HTTPS)).to(beTruthy());
3131
});
3232

33-
xit(@"should be built with SSH enabled", ^{
33+
it(@"should be built with SSH enabled", ^{
3434
expect(@(git_features & GIT_FEATURE_SSH)).to(beTruthy());
3535
});
3636

37+
it(@"should have ssh memory credentials", ^{
38+
NSError *error;
39+
GTCredential *cred = [GTCredential credentialWithUserName:@"null" publicKeyString:@"pub" privateKeyString:@"priv" passphrase:@"pass" error:&error];
40+
41+
expect(cred).notTo(beNil());
42+
expect(error).to(beNil());
43+
});
3744
});
3845

3946
QuickSpecEnd

0 commit comments

Comments
 (0)