Skip to content

Commit

Permalink
Merge pull request #318 from etiennebarrie/remove-deprecated-Object-e…
Browse files Browse the repository at this point in the history
…qual-match

Remove deprecated call to Object#=~
  • Loading branch information
barrettkingram authored Nov 6, 2022
2 parents b5bcf1f + d690eda commit 4006ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/minitest/minitest_reporter_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def passed?
# stolen from minitest self.run
def total_count(options)
filter = options[:filter] || '/./'
filter = Regexp.new $1 if filter =~ /\/(.*)\//
filter = Regexp.new $1 if filter.is_a?(String) && filter =~ %r%/(.*)/%

Minitest::Runnable.runnables.map { |runnable|
runnable.runnable_methods.find_all { |m|
Expand Down

0 comments on commit 4006ef0

Please sign in to comment.