testdouble / jasmine-rails

A Jasmine runner for rails projects that's got you covered in both the terminal and the browser
http://rubygems.org/gems/jasmine-rails
MIT License
378 stars 154 forks source link

rake task downloading phantomjs even though binary is on path #124

Closed agmcleod closed 10 years ago

agmcleod commented 10 years ago

After i install the gem through bundler, setup my specs and so forth. I run the task:

bundle exec rake spec:javascript

It installs phantomjs to the home directory (using vagrant, a CentOS vm).

However, if i destroy the VM, bring up a new one, having phantom js installed. I check the location:

[vagrant@app vagrant]$ which phantomjs
/usr/local/bin/phantomjs

And then the path:

[vagrant@app vagrant]$ echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/vagrant/bin
[vagrant@app vagrant]$

I can run the tests, however I'd prefer to not have two installs of phantomjs, as it's unnecessary, and I prefer to keep things clean on our CI server. Thanks

agmcleod commented 10 years ago

Closing. phantomjs gem is looking for 1.9.7, our system one is 1.9.6.