Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix ruby parsing error in rdoc

  • Loading branch information...
commit 26d3ffb40364876a020140bebdaec3a89033a404 1 parent 5424a5c
David Chelimsky dchelimsky authored
Showing with 4 additions and 5 deletions.
  1. +0 −1  .yardopts
  2. +4 −4 lib/rspec/mocks/message_expectation.rb
1  .yardopts
View
@@ -5,4 +5,3 @@ lib/**/*.rb
-
Changelog.md
License.txt
-GFM-TEST.md
8 lib/rspec/mocks/message_expectation.rb
View
@@ -272,15 +272,15 @@ def generate_error
#
# cart.stub(:add) { :failure }
# cart.stub(:add).with(Book.new(:isbn => 1934356379)) { :success }
- # cart.add(Book.new(:isbn => 1234567890)
+ # cart.add(Book.new(:isbn => 1234567890))
# # => :failure
- # cart.add(Book.new(:isbn => 1934356379)
+ # cart.add(Book.new(:isbn => 1934356379))
# # => :success
#
# cart.should_receive(:add).with(Book.new(:isbn => 1934356379)) { :success }
- # cart.add(Book.new(:isbn => 1234567890)
+ # cart.add(Book.new(:isbn => 1234567890))
# # => failed expectation
- # cart.add(Book.new(:isbn => 1934356379)
+ # cart.add(Book.new(:isbn => 1934356379))
# # => passes
def with(*args, &block)
@return_block = block if block_given? unless args.empty?
Please sign in to comment.
Something went wrong with that request. Please try again.