Skip to content
This repository
Browse code

fix ruby parsing error in rdoc

  • Loading branch information...
commit 26d3ffb40364876a020140bebdaec3a89033a404 1 parent 5424a5c
David Chelimsky dchelimsky authored

Showing 2 changed files with 4 additions and 5 deletions. Show diff stats Hide diff stats

  1. +0 1  .yardopts
  2. +4 4 lib/rspec/mocks/message_expectation.rb
1  .yardopts
@@ -5,4 +5,3 @@ lib/**/*.rb
5 5 -
6 6 Changelog.md
7 7 License.txt
8   -GFM-TEST.md
8 lib/rspec/mocks/message_expectation.rb
@@ -272,15 +272,15 @@ def generate_error
272 272 #
273 273 # cart.stub(:add) { :failure }
274 274 # cart.stub(:add).with(Book.new(:isbn => 1934356379)) { :success }
275   - # cart.add(Book.new(:isbn => 1234567890)
  275 + # cart.add(Book.new(:isbn => 1234567890))
276 276 # # => :failure
277   - # cart.add(Book.new(:isbn => 1934356379)
  277 + # cart.add(Book.new(:isbn => 1934356379))
278 278 # # => :success
279 279 #
280 280 # cart.should_receive(:add).with(Book.new(:isbn => 1934356379)) { :success }
281   - # cart.add(Book.new(:isbn => 1234567890)
  281 + # cart.add(Book.new(:isbn => 1234567890))
282 282 # # => failed expectation
283   - # cart.add(Book.new(:isbn => 1934356379)
  283 + # cart.add(Book.new(:isbn => 1934356379))
284 284 # # => passes
285 285 def with(*args, &block)
286 286 @return_block = block if block_given? unless args.empty?

0 comments on commit 26d3ffb

Please sign in to comment.
Something went wrong with that request. Please try again.