class RSpec::Mocks::MessageExpectation

def and_raise(*args)

Other tags:
    Note: -

Returns:
  • (nil) - No further chaining is supported after this.

Overloads:
  • and_raise(exception_instance)
  • and_raise(ExceptionClass, message)
  • and_raise(ExceptionClass)
  • and_raise
def and_raise(*args)
  raise_already_invoked_error_if_necessary(__method__)
  self.terminal_implementation_action = Proc.new { raise(*args) }
  nil
end