-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Minitest/MultipleAssertions Error with Conditional Assignment Operator #283
Labels
bug
Something isn't working
Comments
This was referenced Dec 18, 2023
I'm also seeing this but oddly only in github actions - when I run locally it doesn't happen. I thought maybe it was because I was using 3.2 locally but actions was using 3.0 but I tried 3.2 in actions and that failed. Here's a full back trace from one of our failures:
|
tomhughes
added a commit
to tomhughes/openstreetmap-website
that referenced
this issue
Dec 19, 2023
similar line is erroring for me as well, put notes up at #284 |
koic
added a commit
to koic/rubocop-minitest
that referenced
this issue
Dec 20, 2023
Fixes rubocop#283. This PR fixes an error for `Minitest/MultipleAssertions` when using `||` assigning a value to a variable.
koic
added a commit
to koic/rubocop-minitest
that referenced
this issue
Dec 20, 2023
Fixes rubocop#283. This PR fixes an error for `Minitest/MultipleAssertions` when using `||` assigning a value to a variable.
This was referenced Dec 20, 2023
koic
added a commit
that referenced
this issue
Dec 22, 2023
…assertions [Fix #283] Fix an error for `Minitest/MultipleAssertions`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
No Error when using a conditional assignment operator
||=
anywhere in the test-file.Actual behavior
With
NewCops: enable
rubocop-minitest raises an error when a conditional assignment is used.Steps to reproduce the problem
Given the following configuration, an error is raised.
$ rubocop Inspecting 1 file An error occurred while Minitest/MultipleAssertions cop was inspecting /home/me/.../some_test.rb:6:0.
RuboCop version
The text was updated successfully, but these errors were encountered: