Skip to content

Commit

Permalink
Test the ssh support availability
Browse files Browse the repository at this point in the history
  • Loading branch information
tiennou committed May 29, 2018
1 parent 91e11e3 commit c978f21
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ObjectiveGitTests/Libgit2FeaturesSpec.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,17 @@
expect(@(git_features & GIT_FEATURE_HTTPS)).to(beTruthy());
});

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

it(@"should have ssh memory credentials", ^{
NSError *error;
GTCredential *cred = [GTCredential credentialWithUserName:@"null" publicKeyString:@"pub" privateKeyString:@"priv" passphrase:@"pass" error:&error];

expect(cred).notTo(beNil());
expect(error).to(beNil());
});
});

QuickSpecEnd

0 comments on commit c978f21

Please sign in to comment.