The first arg is used for documentation/reporting purposes, that's all. Doesn't matter if it's a Symbol or String. If it's not there you'll just see "mock" in the output without any clarification of which mock failed.
This is admittedly not explained perfectly clearly on http://rubydoc.info/gems/rspec-mocks/RSpec/Mocks/ExampleMethods#double-instance_method, so we'll improve that doc. Cheers, David On Mon, Nov 5, 2012 at 7:48 AM, beagile <[email protected]> wrote: > Couldn't find a clue in the rspec-mocks documentation what the difference > is... The documentation always uses the mock('some')-variant. > So is there a difference and if then what exactly? > > Govinda > > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msg/rspec/-/CwM_iJzzXFoJ. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "rspec" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
