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
Rails/HttpPositionalArguments autocorrect in 0.56.0 #5888
Comments
I updated my issue to make it more generic, I think that the I have been unsuccessfully trying to find where the methods https://relishapp.com/rspec/rspec-rails/v/3-7/docs/request-specs/request-spec (at the bottom of the page) According to them, the arguments |
Hi guys, I've just run into this too. Switching the The relevant rspec-rails/actionpack code is completely non obvious but here's my attempt at tracing it. For controller specs: include ActionController::TestCase::Behavior And request specs: include ActionDispatch::IntegrationTest::Behavior ActionController::TestCase::Behavior#process has a session argument but no way to set headers. ActionDispatch::IntegrationTest::Behavior#process on the other hand is the only one with a headers argument. |
@6temes the request methods all call into This cop appears to be unsafe in nature because the auto-correction for |
Note: I had to lock RuboCop because there's a bug that's biting us: rubocop/rubocop#5888 Once that's cleared up, I can drop the pin and upgrade.
Context:
Code:
Is auto corrected to:
Expected result:
or
Versions:
The text was updated successfully, but these errors were encountered: