Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

no go on GFM for now

  • Loading branch information...
commit de90662807bd07c25dc9b10c5703e1a84c4e5850 1 parent 8f8fa3d
@dchelimsky dchelimsky authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/rspec/mocks/message_expectation.rb
View
8 lib/rspec/mocks/message_expectation.rb
@@ -83,11 +83,9 @@ def and_return(*values, &return_block)
#
# @example
#
- # ```ruby
- # car.stub(:go).and_raise
- # car.stub(:go).and_raise(Exception) # any exception class
- # car.stub(:go).and_raise(exception) # any exception object
- # ```
+ # car.stub(:go).and_raise
+ # car.stub(:go).and_raise(Exception) # any exception class
+ # car.stub(:go).and_raise(exception) # any exception object
def and_raise(exception=Exception)
@exception_to_raise = exception
end
Please sign in to comment.
Something went wrong with that request. Please try again.