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.
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 toexample.com
and it turns out that ActionDispatch::Integration::Session has default hostwww.example.com
and changing it tolocalhost
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.