--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::H 
  level: 2
  text: Warning
- !ruby/struct:SM::Flow::P 
  body: When you pass an exception class, the MessageExpectation will raise an instance of it, creating it with <tt>new</tt>. If the exception class initializer requires any parameters, you must pass in an instance and not the class.
full_name: Spec::Mocks::BaseExpectation#and_raise
is_singleton: false
name: and_raise
params: |
  and_raise()
  and_raise(Exception) #any exception class
  and_raise(exception) #any exception object

visibility: public
