Commit ad632762 ad632762871b518d349f6206a0a8de0b902df10b by Nicolas Perriault

refs #261 - attempt at fixing coffeescript based tests/modules

1 parent 983e85a3
......@@ -203,7 +203,7 @@ function bootstrap(global) {
}
// Embedded, up-to-date, validatable & controlable CoffeeScript
phantom.injectJs(fs.pathJoin(phantom.casperPath, 'node_modules', 'vendors', 'coffee-script.js'));
phantom.injectJs(fs.pathJoin(phantom.casperPath, 'modules', 'vendors', 'coffee-script.js'));
// custom global CasperError
global.CasperError = function CasperError(msg) {
......
/*global casper*/
/*jshint strict:false*/
var fs = require('fs');
var modroot = fs.pathJoin(phantom.casperPath, 'tests', 'suites', 'modules');
var jsmod = require(fs.pathJoin(modroot, 'jsmodule'));
var csmod = require(fs.pathJoin(modroot, 'csmodule'));
casper.test.assertTrue(jsmod.ok, 'require() patched version can load a js module');
casper.test.assertTrue(csmod.ok, 'require() patched version can load a coffeescript module');
casper.test.done();