Method: MotionSpec::Matcher::RaiseError#exception_matcher?
- Defined in:
- lib/motion-spec/matcher/raise_error.rb
#exception_matcher?(error_class) ⇒ Boolean
18 19 20 |
# File 'lib/motion-spec/matcher/raise_error.rb', line 18 def exception_matcher?(error_class) error_class.is_a?(String) || error_class.is_a?(Regexp) end |