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

Added ability to change host for spec runner app #160

Closed gacha closed 5 years ago

gacha commented 9 years ago

I have a rails 3.2 app and when running jasmine from console it fails with Jasmine runner at '/specs' returned a 301 error: Moved Permanently when I debugged into runner and noticed that it makes redirect to example.com and it turns out that ActionDispatch::Integration::Session has default host www.example.com and changing it to localhost fixed it.

I'm not really sure if this affects anyone else, but I've seen this kind of error in some other issues to. Also I had problems to run tests, maybe I used wrong ruby version, tried so far with 2.0 and 2.2.

searls commented 9 years ago

Annoyingly, thanks to an execjs change in supported ruby version, I can't get the tests to run either.

searls commented 9 years ago

Could you rebase master and try again now that the build is passing?

gacha commented 9 years ago

Yes, now with ruby 2.0 all test pass.