Permalink
Browse files

no go on GFM for now

  • Loading branch information...
1 parent 8f8fa3d commit de90662807bd07c25dc9b10c5703e1a84c4e5850 @dchelimsky dchelimsky committed Nov 29, 2011
Showing with 3 additions and 5 deletions.
  1. +3 −5 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

0 comments on commit de90662

Please sign in to comment.