Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

restore rdoc examples to standard markdown indentation until rdoc.inf…

…o supports git-flavored markup
  • Loading branch information...
commit dc295d279d111094d94d66148b28621e0ef02c69 1 parent 75fb857
@dchelimsky dchelimsky authored
Showing with 4 additions and 8 deletions.
  1. +1 −3 README.md
  2. +3 −5 lib/rspec/mocks/methods.rb
View
4 README.md
@@ -15,9 +15,7 @@ A Test Double is an object that stands in for a real object in a test.
RSpec creates test doubles that support method stubs and message
expectations.
-``` ruby
-book = double("book")
-```
+ book = double("book")
## Method Stubs
View
8 lib/rspec/mocks/methods.rb
@@ -18,11 +18,9 @@ def should_not_receive(message, &block)
#
# @example
#
- # ```ruby
- # counter.stub(:count).and_return(37)
- # counter.stub(:count => 37)
- # counter.stub(:count) { 37 }
- # ```
+ # counter.stub(:count).and_return(37)
+ # counter.stub(:count => 37)
+ # counter.stub(:count) { 37 }
def stub(message_or_hash, opts={}, &block)
if Hash === message_or_hash
message_or_hash.each {|message, value| stub(message).and_return value }
Please sign in to comment.
Something went wrong with that request. Please try again.