module Mocha::ParameterMatchers
def regexp_matches(regexp)
- Example: Actual parameter is not matched by specified regular expression. -
Example: Actual parameter is matched by specified regular expression. -
Other tags:
- See: Expectation#with -
Returns:
-
(RegexpMatches)
- parameter matcher.
Parameters:
-
regexp
(Regexp
) -- regular expression to match.
def regexp_matches(regexp) RegexpMatches.new(regexp) end