# File lib/minitest/unit.rb, line 114 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.escape(exp)}/ if String === exp && String === act assert exp =~ act, msg end