Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Changing the "working directory" to "/test" before running tests.
Browse files Browse the repository at this point in the history
This fixes some issues with our tests, where we were erroneously failing.
  • Loading branch information
detro committed Jun 18, 2012
1 parent bd6f1f2 commit b443b7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/run-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ function expectHasPropertyString(o, name) {
});
}

// Load specs
// Setting the "working directory" to the "/test" directory
var fs = require('fs');
fs.changeWorkingDirectory(phantom.libraryPath);

// Load specs
phantom.injectJs("./phantom-spec.js");
phantom.injectJs("./module-spec.js");
phantom.injectJs("./webpage-spec.js");
Expand Down

0 comments on commit b443b7a

Please sign in to comment.