jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

PhantomJS Error Message #55

Closed andyl closed 11 years ago

andyl commented 11 years ago

Teabag is running specs from the command line - yea! But I get a funky error message "No such file or directory..."

Starting the Teabag server... 
Teabag running default suite at http://127.0.0.1:42806/teabag/default
./bin/rake: No such file or directory - phantomjs --version
./bin/rake: No such file or directory - phantomjs --version
.
Finished in 0.00500 seconds
1 example, 0 failures

Any ideas re: how to suppress/eliminate this message?

I'm running: Ubuntu 12.04 32-bit, teabag 0.7.1, ruby 1.9.3p327perf, rails 3.2.13.

I tried:

jejacks0n commented 11 years ago

Ah, so it's looking for phantomjs, using a sort of "which" type of functionality.. I expect the error is coming from this, but I'm not sure: https://github.com/modeset/teabag/blob/master/lib/teabag/utility.rb

Is phantomjs in your path?

andyl commented 11 years ago

OK so - the phantomjs from the apt-get repo was at version 1.4. I downloaded the newest phantomJS (version 1.9), installed it on my path, and everything looks great.

I added a little blurb to the wiki page in case someone else runs into this issue.

Thanks very much for Teabag - excited to try this on my project!

jejacks0n commented 11 years ago

Awesome, thank you!

As an aside, I have a javascript project called Mercury Editor, and the level of questions/support needs between people writing specs for their projects vs. people wanting to use a javascript library is considerably different. It's really rewarding to support a project for folks that read documentation and are able to clarify issues. Cheers! =)