Skip to content

Remove redundant rubocop disable directive in test/helper.rb#1095

Merged
petergoldstein merged 2 commits intomainfrom
chore/fix-rubocop-redundant-disable
Apr 21, 2026
Merged

Remove redundant rubocop disable directive in test/helper.rb#1095
petergoldstein merged 2 commits intomainfrom
chore/fix-rubocop-redundant-disable

Conversation

@petergoldstein
Copy link
Copy Markdown
Owner

Summary

  • Removes a rubocop:disable Style/OneClassPerFile / rubocop:enable pair from test/helper.rb
  • The directive was never necessary since the file doesn't define multiple top-level classes
  • Rubocop now reports this as Lint/RedundantCopDisableDirective

Test plan

  • bundle exec rubocop passes with no offenses

🤖 Generated with Claude Code

petergoldstein and others added 2 commits April 20, 2026 22:39
The Style/OneClassPerFile disable comment was never needed since the
file doesn't define multiple top-level classes. Rubocop now flags it
as Lint/RedundantCopDisableDirective.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Minitest 6 added an explicit guard that raises TypeError if any argument
to assert_raises is not a Module. The hash `message: 'No server available'`
failed this check. Replace all affected call sites with the existing
assert_error helper, which rescues the exception and then asserts its message.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@petergoldstein petergoldstein merged commit 9d5fef6 into main Apr 21, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant