Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rdoc: legal ruby in the comments actually works

  • Loading branch information...
commit 50a49800cdd492f6f99acb2d3049be57df68467e 1 parent c758d40
@dchelimsky dchelimsky authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/rspec/mocks/example_methods.rb
View
8 lib/rspec/mocks/example_methods.rb
@@ -13,11 +13,11 @@ module ExampleMethods
# @example
#
# book = double("book", :title => "The RSpec Book")
- # book.title => "The RSpec Book"
+ # book.title #=> "The RSpec Book"
#
- # card = double("card", :suit => "Spades", :rank => "A"
- # card.suit => "Spades"
- # card.rank => "A"
+ # card = double("card", :suit => "Spades", :rank => "A")
+ # card.suit #=> "Spades"
+ # card.rank #=> "A"
def double(*args)
declare_double('Double', *args)
end
Please sign in to comment.
Something went wrong with that request. Please try again.