Skip to content

Commit

Permalink
Fix a method redefinition warning (#94)
Browse files Browse the repository at this point in the history
The fix in rails was added somewhere in 5.X, #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
```
  • Loading branch information
Earlopain committed Mar 2, 2024
1 parent 1a064a3 commit 36d5c38
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion lib/shoulda/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

if defined?(Rails)
require "shoulda/context/railtie"
require "shoulda/context/rails_test_unit_reporter_patch"
end

Shoulda::Context.configure do |config|
Expand Down
21 changes: 0 additions & 21 deletions lib/shoulda/context/rails_test_unit_reporter_patch.rb

This file was deleted.

0 comments on commit 36d5c38

Please sign in to comment.