Skip to content

Commit

Permalink
Fixed 2.6 warning in test_refute_match_matcher_object by adding expli…
Browse files Browse the repository at this point in the history
…cit =~ method. (y-yagi)

[git-p4: depot-paths = "//src/minitest/dev/": change = 12122]
  • Loading branch information
zenspider committed Jun 11, 2019
1 parent ec524d9 commit 24551b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/minitest/test_minitest_assertions.rb
Expand Up @@ -1063,7 +1063,9 @@ def test_refute_match

def test_refute_match_matcher_object
@assertion_count = 2
@tc.refute_match Object.new, 5 # default #=~ returns false
pattern = Object.new
def pattern.=~ _; false end
@tc.refute_match pattern, 5
end

def test_refute_match_object_triggered
Expand Down

0 comments on commit 24551b6

Please sign in to comment.