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