# File lib/minitest/unit.rb, line 273 def assert_match exp, act, msg = nil msg = message(msg) { "Expected #{mu_pp(exp)} to match #{mu_pp(act)}" } assert_respond_to act, "=~""=~" exp = Regexp.new Regexp.escape exp if String === exp and String === act assert exp =~ act, msg end