module RSpec::Mocks::ExampleMethods
def double(*args)
card.suit => "Spades"
card = double("card", :suit => "Spades", :rank => "A"
book.title => "The RSpec Book"
book = double("book", :title => "The RSpec Book")
== Examples
Use +stubs+ to declare one or more method stubs in one statement.
the mock is playing in the example.
+name+ is used for failure reporting, so you should use the role that
Creates an instance of RSpec::Mocks::Mock.
def double(*args) declare_double('Double', *args) end