# File test/unit/assertions.rb, line 135 def assert_match(pattern, string, message="") _wrap_assertion do full_message = build_message(message, string, pattern) do |arg1, arg2| "<#{arg1}> expected to be =~\n" + "<#{arg2}>" end assert_block(full_message) { string =~ pattern } end end