ronaldlokers / grunt-casperjs

Grunt task for casperjs
MIT License
104 stars 51 forks source link

Implicitly installs casperjs 1.0.3 #21

Closed brettjonesdev closed 11 years ago

brettjonesdev commented 11 years ago

The recommended version of casper right now is 1.1.0-DEV, but install.js installs the 1.0.3 version upon installation. This causes all sorts of problems for casper code that is written to work with Casper 1.1.0+. For instance, my code. :)

I have 1.1.0-DEV installed locally, and my tests run correctly when I run them from the command line with casperjs test ./test.js, but when I run the same test.js through grunt-casperjs, I get an error around require calls, which I believe is caused by lack of support in older versions of Casper.

I highly recommend updating install.js to install 1.1.0 instead of 1.0.3, or at least checking for an existing casperjs installation before installing an outdated version.

brettjonesdev commented 11 years ago

I have a PR for this now.