From 8b82c06c6fcd63a48d498ccef402bea19652d78f Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 12 Mar 2013 13:32:21 -0700 Subject: [PATCH] Include fixtures/packages in resource paths when running specs --- native/atom_window_controller.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/native/atom_window_controller.mm b/native/atom_window_controller.mm index b4f0fb2a3..bc10d0a76 100644 --- a/native/atom_window_controller.mm +++ b/native/atom_window_controller.mm @@ -59,6 +59,10 @@ @"vendor/packages", @"vendor", @"static", @"themes", @"node_modules", nil]; NSMutableArray *resourcePaths = [[NSMutableArray alloc] init]; + if (_runningSpecs) { + NSString *fixturePackagesDirectory = [NSString stringWithFormat:@"%@/fixtures/packages", _resourcePath]; + [resourcePaths addObject:fixturePackagesDirectory]; + } NSString *userPackagesDirectory = [@"~/.atom/packages" stringByStandardizingPath]; [resourcePaths addObject:userPackagesDirectory]; for (int i = 0; i < paths.count; i++) {