Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix a method redefinition warning#94

Merged
vsppedro merged 1 commit into
thoughtbot:mainfrom
Earlopain:fix-redefinition-warning
Mar 2, 2024
Merged

Fix a method redefinition warning#94
vsppedro merged 1 commit into
thoughtbot:mainfrom
Earlopain:fix-redefinition-warning

Conversation

@Earlopain

@Earlopain Earlopain commented Mar 1, 2024

Copy link
Copy Markdown
Contributor

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
```
@Earlopain Earlopain force-pushed the fix-redefinition-warning branch from 096f8c4 to 4ffa62c Compare March 1, 2024 18:37
@vsppedro

vsppedro commented Mar 2, 2024

Copy link
Copy Markdown
Collaborator

Thank you for your contribution!

@vsppedro vsppedro merged commit 36d5c38 into thoughtbot:main Mar 2, 2024
@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.

2 participants