assert_match(matcher, obj, msg = nil)
Fails unless matcher =~ obj.
# File lib/minitest/unit.rb, line 289 def assert_match matcher, obj, msg = nil msg = message(msg) { "Expected #{mu_pp matcher} to match #{mu_pp obj}" } assert_respond_to matcher, :"=~" matcher = Regexp.new Regexp.escape matcher if String === matcher assert matcher =~ obj, msg end