method

assert_match

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

Passes if string =~ pattern.

Example:

  assert_match(/\d+/, 'five, 6, seven')
Show source
Register or log in to add new notes.