We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If a file under test/ contains an assignment to a global variable at the top level, Minitest/AssertOutput will generate an error
test/
Minitest/AssertOutput ignores the assignment because it doesn't occur in a test case
RuboCop generates an error message like the following:
An error occurred while Minitest/AssertOutput cop was inspecting /home/matijs/Projects/gir_ffi/test/foo.rb:1:0
Given a project configured for using rubocop-minitest, create a file test/foo.rb containing
test/foo.rb
$VERBOSE = false
Then run:
$ rubocop test/foo.rb
0.88.0 (using Parser 2.7.1.4, rubocop-ast 0.1.0, running on ruby 2.7.1 x86_64-linux)
The text was updated successfully, but these errors were encountered:
[Fix rubocop#106] Fix an errof for Minitest/AssertOutput cop
Minitest/AssertOutput
953a5b9
Fixes rubocop#106. This PR fixes an error for `Minitest/AssertOutput` when using gvar at top level.
Merge pull request #107 from koic/fix_error_for_minitest_assert_output
3255a17
[Fix #106] Fix an errof for `Minitest/AssertOutput` cop
Thanks, @koic!
Sorry, something went wrong.
@mvz You are welcome :-) Thank you for feedback!
Successfully merging a pull request may close this issue.
If a file under
test/
contains an assignment to a global variable at the top level, Minitest/AssertOutput will generate an errorExpected behavior
Minitest/AssertOutput ignores the assignment because it doesn't occur in a test case
Actual behavior
RuboCop generates an error message like the following:
Steps to reproduce the problem
Given a project configured for using rubocop-minitest, create a file
test/foo.rb
containingThen run:
RuboCop version
The text was updated successfully, but these errors were encountered: