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

Fix a method redefinition warning #94

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

Earlopain
Copy link
Contributor

@Earlopain Earlopain commented Mar 1, 2024

The fix in rails was added somewhere in 5.X and #82 dropped support for Rails 5.2 so just drop the workaround as well.

/usr/local/bundle/gems/shoulda-context-2.0.0/lib/shoulda/context/rails_test_unit_reporter_patch.rb:8: warning: method redefined; discarding old format_rerun_snippet
/usr/local/bundle/gems/railties-7.1.3/lib/rails/test_unit/reporter.rb:76: warning: previous definition of format_rerun_snippet was here

The fix in rails was added somewhere in 5.X, thoughtbot#82 dropped support for rails 5.2, so just drop the workaround as well.

```
/usr/local/bundle/gems/shoulda-context-2.0.0/lib/shoulda/context/rails_test_unit_reporter_patch.rb:8: warning: method redefined; discarding old format_rerun_snippet
/usr/local/bundle/gems/railties-7.1.3/lib/rails/test_unit/reporter.rb:76: warning: previous definition of format_rerun_snippet was here
```
@vsppedro
Copy link
Collaborator

vsppedro commented Mar 2, 2024

Thank you for your contribution!

@vsppedro vsppedro merged commit 36d5c38 into thoughtbot:main Mar 2, 2024
5 checks passed
@Earlopain Earlopain deleted the fix-redefinition-warning branch March 3, 2024 10:56
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.

None yet

2 participants