Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

rake spec:javascript - Phantom integration error in windows #89

Open
asierba opened this issue Nov 4, 2013 · 2 comments
Open

rake spec:javascript - Phantom integration error in windows #89

asierba opened this issue Nov 4, 2013 · 2 comments

Comments

@asierba
Copy link

asierba commented Nov 4, 2013

Hi,

Apologies if this has been tackled already.

I've installed this jasmine-rails gems for rails in windows. If I define a route for the runner - as defined in the readme - and go to http://localhost:3000/specs I can see the jasmine test output with no problem.

But when I try to run it from the command line with rake spec:javascript I got the following error from phantomjs

Running `phantomjs "c:/ruby193/lib/ruby/gems/1.9.1/gems/jasmine-rails-0.4.8/lib/jasmine_rails/../assets/javascripts/jasmine-runner.js" "file://c:/Dev/app/spec/tmp/runner.html?spec="`
Running: file://c:/Dev/app/spec/tmp/runner.html?spec=
can't load the address!

The problem here is the second argument passed to phantomjs which has file:// at the beginning.

If I go to the source code of the gem and remove that bit it works.

I don't know exactly if this is a problem with phantomjs, my enviroment or this gem.
Any idea?

Thanks in advance!

Asier

@searls
Copy link
Member

searls commented Feb 20, 2014

Seems legit. You're saying it worked fine if you just removed the "file://" protocol?

@asierba
Copy link
Author

asierba commented Feb 20, 2014

Yep, basically.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants