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

Tests not running #134

Closed dariusgm closed 10 years ago

dariusgm commented 10 years ago

Launching RAILS_ENV=test rake spec:javascript breaking:

Phantomjs does not appear to be installed in /home/me/.phantomjs/1.9.7/x86_64-linux/bin/phantomjs, installing!
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 14134  100 14134    0     0   134k      0 --:--:-- --:--:-- --:--:--  134k
bunzip2: phantomjs-1.9.7-linux-x86_64.tar.bz2 is not a bzip2 file.
tar: phantomjs-1.9.7-linux-x86_64.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
rake aborted!
TypeError: no implicit conversion of nil into String

Seems to be a broken download path for phantomjs in the gem. Installed by RubyGems.

Rails 4.1.0 Ruby: ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux] OS: Ubuntu 14.04 LTS

searls commented 10 years ago

Well that's not great.

searls commented 10 years ago

It looks like phantomjs-gem was broken when the phantomJS folks changed their web site.

Could you try again?

akshaykarle commented 10 years ago

@searls @dariusgm I faced the same issue a few days ago but when I tried again today, it seems to work now. phantomjs gem version is 1.9.7.1 and jasmine-rails version 0.9.0. Hope it helps.

dariusgm commented 10 years ago

I have explicitly add phantomjs version to my Gemfile as mentioned by @akshaykarle, do a

 bundle update phantomjs

and now it works fine again. Thanks.