File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 105
105
expect (@(enumerationSuccessful)).to (beTruthy ());
106
106
expect (err).to (beNil ());
107
107
});
108
+
109
+ it (@" should report file should be ignored" , ^{
110
+ __block NSError *err = nil ;
111
+ NSURL *fileURL = [repository.fileURL URLByAppendingPathComponent: @" .DS_Store" ];
112
+ BOOL success = NO ;
113
+ BOOL shouldIgnore = [repository shouldFileBeIgnored: fileURL success: &success error: &err];
114
+ expect (@(success)).to (beTrue ());
115
+ expect (@(shouldIgnore)).to (beTrue ());
116
+ expect (err).to (beNil ());
117
+ });
118
+
119
+ it (@" should report file should be ignored (convenience wrapper)" , ^{
120
+ __block NSError *err = nil ;
121
+ NSURL *fileURL = [repository.fileURL URLByAppendingPathComponent: @" .DS_Store" ];
122
+ GTFileIgnoreState ignore = [repository shouldIgnoreFileURL: fileURL error: &err];
123
+ expect (@(ignore)).to (equal (@(GTFileIgnoreStateShouldIgnore)));
124
+ expect (err).to (beNil ());
125
+ });
108
126
});
109
127
110
128
afterEach (^{
You can’t perform that action at this time.
0 commit comments