New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
format: :js
causes fails on Rails 4.1.0.rc1
#950
Comments
Cause: rails/rails#13345 |
Based off the PR it would seem you need to do Closing because this would fail on MiniTest too... |
Thanks @JonRowe, with |
No worries, I had to research this to figure out what was going on! :) |
Last update, now you can use:
|
Controller specs for JS actions (
format: :js
) are failing with Rails 4.1.0.rc1 producing the following error:I'm just guessing but this could be a new Rails feature that is affecting RSpec that probably generates those requests from a different domain then expected by the application.
You can reproduce this by cloning https://github.com/mezuro/mezuro, on the branch rails4.1, after
bundle install
, run:rspec spec/controllers/repositories_controller_spec.rb
.From observing this application I can as well say this affects GET requests while POST requests still working fine.
Running the application on the browser raises no errors or warnings as well as cucumber tests. And the tests with Rails 4.0.3 are OK. Also, I've tested this against rspec-rails 2.14.1 and 3.0.0.beta with the same results.
Thanks a lot!
The text was updated successfully, but these errors were encountered: