Skip to content

Commit

Permalink
fix ruby parsing error in rdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Dec 5, 2011
1 parent 5424a5c commit 26d3ffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .yardopts
Expand Up @@ -5,4 +5,3 @@ lib/**/*.rb
- -
Changelog.md Changelog.md
License.txt License.txt
GFM-TEST.md
8 changes: 4 additions & 4 deletions lib/rspec/mocks/message_expectation.rb
Expand Up @@ -272,15 +272,15 @@ def generate_error
# #
# cart.stub(:add) { :failure } # cart.stub(:add) { :failure }
# cart.stub(:add).with(Book.new(:isbn => 1934356379)) { :success } # cart.stub(:add).with(Book.new(:isbn => 1934356379)) { :success }
# cart.add(Book.new(:isbn => 1234567890) # cart.add(Book.new(:isbn => 1234567890))
# # => :failure # # => :failure
# cart.add(Book.new(:isbn => 1934356379) # cart.add(Book.new(:isbn => 1934356379))
# # => :success # # => :success
# #
# cart.should_receive(:add).with(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 # # => failed expectation
# cart.add(Book.new(:isbn => 1934356379) # cart.add(Book.new(:isbn => 1934356379))
# # => passes # # => passes
def with(*args, &block) def with(*args, &block)
@return_block = block if block_given? unless args.empty? @return_block = block if block_given? unless args.empty?
Expand Down

0 comments on commit 26d3ffb

Please sign in to comment.