method

assert_no_match

v1_8_6_287 - Show latest stable - Class: Test::Unit::Assertions
assert_no_match(regexp, string, message="")
public

Passes if regexp !~ string

Example:

  assert_no_match(/two/, 'one 2 three')