method

assert_match

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

Passes if string =~ pattern.

Example:

  assert_match(/\d+/, 'five, 6, seven')