File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 expect (@(git_features & GIT_FEATURE_HTTPS )).to (beTruthy ());
3232 });
3333
34- xit (@" should be built with SSH enabled" , ^{
34+ it (@" should be built with SSH enabled" , ^{
3535 expect (@(git_features & GIT_FEATURE_SSH )).to (beTruthy ());
3636 });
3737
38+ it (@" should have ssh memory credentials" , ^{
39+ NSError *error;
40+ GTCredential *cred = [GTCredential credentialWithUserName: @" null" publicKeyString: @" pub" privateKeyString: @" priv" passphrase: @" pass" error: &error];
41+
42+ expect (cred).to (beNil ());
43+ expect (error).notTo (beNil ());
44+ NSError *underError = error.userInfo [NSUnderlyingErrorKey ];
45+ expect (underError.code ).to (equal (@(-1 )));
46+ expect (underError.localizedDescription ).to (equal (@" this version of libgit2 was not built with ssh memory credentials." ));
47+ });
3848});
3949
4050QuickSpecEnd
You can’t perform that action at this time.
0 commit comments