Specify cwd instead of cd'ing

This commit is contained in:
Kevin Sawicki
2013-04-18 20:41:17 -07:00
parent ca1177efea
commit 4b48e07f83

View File

@@ -326,7 +326,7 @@ describe "the `atom` global", ->
describe "API documentation", ->
it "meets a minimum threshold for /app (with no errors)", ->
docRunner = jasmine.createSpy("docRunner")
Exec "cd #{project.resolve('../..')} && rake docs:app:stats", docRunner
Exec "rake docs:app:stats", cwd: project.resolve('../..'), docRunner
waitsFor ->
docRunner.callCount > 0