Permalink
Browse files

fix ruby parsing error in rdoc

  • Loading branch information...
1 parent 5424a5c commit 26d3ffb40364876a020140bebdaec3a89033a404 @dchelimsky dchelimsky committed Dec 5, 2011
Showing with 4 additions and 5 deletions.
  1. +0 −1 .yardopts
  2. +4 −4 lib/rspec/mocks/message_expectation.rb
View
1 .yardopts
@@ -5,4 +5,3 @@ lib/**/*.rb
-
Changelog.md
License.txt
-GFM-TEST.md
View
8 lib/rspec/mocks/message_expectation.rb
@@ -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?

0 comments on commit 26d3ffb

Please sign in to comment.