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) { ...@@ -203,7 +203,7 @@ function bootstrap(global) {
203 } 203 }
204 204
205 // Embedded, up-to-date, validatable & controlable CoffeeScript 205 // Embedded, up-to-date, validatable & controlable CoffeeScript
206 phantom.injectJs(fs.pathJoin(phantom.casperPath, 'node_modules', 'vendors', 'coffee-script.js')); 206 phantom.injectJs(fs.pathJoin(phantom.casperPath, 'modules', 'vendors', 'coffee-script.js'));
207 207
208 // custom global CasperError 208 // custom global CasperError
209 global.CasperError = function CasperError(msg) { 209 global.CasperError = function CasperError(msg) {
......
1 /*global casper*/
2 /*jshint strict:false*/
3 var fs = require('fs');
4 var modroot = fs.pathJoin(phantom.casperPath, 'tests', 'suites', 'modules');
5 var jsmod = require(fs.pathJoin(modroot, 'jsmodule'));
6 var csmod = require(fs.pathJoin(modroot, 'csmodule'));
7
8 casper.test.assertTrue(jsmod.ok, 'require() patched version can load a js module');
9 casper.test.assertTrue(csmod.ok, 'require() patched version can load a coffeescript module');
10
11 casper.test.done();