method
match

match(expected)
public
Register or
log in
to add new notes.
emime -
April 22, 2011
emime -
April 24, 2011

0 thanks

0 thanks
Input strings are treated as regexp
Input strings are treated as regexp, but you can escape special regexp characters as usual:
"*test*".should match "\\*test\\*" #=> pass "*test*".should match '\*test\*' #=> pass "*test*".should match /\*test\*/ #=> pass