Method: MotionSpec::ContextHelper::Matchers#raise_error

Defined in:
lib/motion-spec/context_helper/matchers.rb

#raise_error(exception_class = Exception, message = '') ⇒ Object Also known as: raise_exception



22
23
24
# File 'lib/motion-spec/context_helper/matchers.rb', line 22

def raise_error(exception_class = Exception, message = '')
  MotionSpec::Matcher::RaiseError.new(exception_class, message)
end