forked from libgit2/objective-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLibgit2FeaturesSpec.m
More file actions
40 lines (29 loc) · 839 Bytes
/
Copy pathLibgit2FeaturesSpec.m
File metadata and controls
40 lines (29 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// Libgit2FeaturesSpec.m
// ObjectiveGitFramework
//
// Created by Ben Chatelain on 7/6/15.
// Copyright (c) 2015 GitHub, Inc. All rights reserved.
//
#import <Nimble/Nimble.h>
#import <Nimble/Nimble-Swift.h>
#import <ObjectiveGit/ObjectiveGit.h>
#import <Quick/Quick.h>
#import "QuickSpec+GTFixtures.h"
QuickSpecBegin(Libgit2FeaturesSpec)
describe(@"libgit", ^{
__block git_feature_t git_features = 0;
beforeEach(^{
git_features = git_libgit2_features();
});
it(@"should be built with THREADS enabled", ^{
expect(@(git_features & GIT_FEATURE_THREADS)).to(beTruthy());
});
it(@"should be built with HTTPS enabled", ^{
expect(@(git_features & GIT_FEATURE_HTTPS)).to(beTruthy());
});
it(@"should be built with SSH enabled", ^{
expect(@(git_features & GIT_FEATURE_SSH)).to(beTruthy());
});
});
QuickSpecEnd