File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 31
31
expect (@(git_features & GIT_FEATURE_HTTPS)).to (beTruthy ());
32
32
});
33
33
34
- xit (@" should be built with SSH enabled" , ^{
34
+ it (@" should be built with SSH enabled" , ^{
35
35
expect (@(git_features & GIT_FEATURE_SSH)).to (beTruthy ());
36
36
});
37
37
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
+ });
38
48
});
39
49
40
50
QuickSpecEnd
You can’t perform that action at this time.
0 commit comments