# File test/unit/assertions.rb, line 231 def assert_no_match(regexp, string, message="") _wrap_assertion do assert_instance_of(Regexp, regexp, "The first argument to assert_does_not_match should be a Regexp.") full_message = build_message(message, regexp.source, string) do |arg1, arg2| "</#{arg1}/> expected to not match\n" + " <#{arg2}>" end assert_block(full_message) { regexp !~ string } end end