Skip to content
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

Silence uninitialized instance var warning in tests #44390

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

p8
Copy link
Member

@p8 p8 commented Feb 10, 2022

Summary

Running the Action Pack tests outputs a warning:

./actionpack/test/controller/test_case_test.rb:1007: warning: instance variable @counter not initialized

Surrounding the line with a silence_warnings block cleans up the output.

Running the Action Pack tests outputs a warning:

    ./actionpack/test/controller/test_case_test.rb:1007: warning: instance variable @counter not initialized

Surrounding the line with silence_warnings cleans up the output.
@rails-bot rails-bot bot added the actionpack label Feb 10, 2022
@kamipo kamipo merged commit b50095f into rails:main Feb 11, 2022
@p8 p8 deleted the actionpack/silence-uninitialized-ivar-warning branch February 11, 2022 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants