Fix broken specs

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-01-03 14:40:31 -07:00
parent 5b3e0e9f83
commit 2cfea9fa42
2 changed files with 2 additions and 3 deletions

View File

@@ -128,9 +128,8 @@
dispatch_async(backgroundQueue, ^{
NSFileManager *fm = [NSFileManager defaultManager];
NSMutableArray *paths;
NSMutableArray *paths = [NSMutableArray array];
if (recursive) {
paths = [NSMutableArray array];
NSDirectoryEnumerator *enumerator = [fm enumeratorAtPath:path];
NSString *subpath;

View File

@@ -6,7 +6,7 @@ describe "fs", ->
directoryPath = null
beforeEach -> directoryPath = require.resolve 'fixtures/file-finder-dir'
fdescribe "when recursive is true", ->
describe "when recursive is true", ->
it "returns a promise that resolves to the recursive contents of that directory", ->
waitsFor (complete) ->
fs.async.list(directoryPath, true).done (result) ->