method

assert_no_match

v1_9_1_378 - Show latest stable - Class: Test::Unit::Assertions
assert_no_match(regexp, string, msg=nil)
public

No documentation available.

# File lib/test/unit/assertions.rb, line 99
      def assert_no_match(regexp, string, msg=nil)
        assert_instance_of(Regexp, regexp, "The first argument to assert_no_match should be a Regexp.")
        self._assertions -= 1
        msg = message(msg) { "<#{mu_pp(regexp)}> expected to not match\n<#{mu_pp(string)}>" }
        assert(regexp !~ string, msg)
      end