[rspec-users] What argument should I pass for mock(), stub() and double()

Hunt Jon jona.hunt777 at gmail.com
Sun Oct 11 02:00:40 EDT 2009

Hi - I'm reading the RSpec book.

I see an example like:

  customer = double('customer')

What is the customer that is in the argument for?
How is this different from:

  customer = double()

? Can anybody explain to me?

- Jon

More information about the rspec-users mailing list