[Rspec-users] Creating a 'default' mock

aslak hellesoy aslak.hellesoy at gmail.com
Mon Jul 24 13:36:07 EDT 2006


On 7/24/06, Chris Roos <chrisjroos at gmail.com> wrote:
> Am I correct in thinking that it's not currently possible to have a
> method that creates a 'standard' mock (i.e. a mock that has defaults
> useful in all contexts)?
>

It should be possible to do that. Can you be more specific about what
you mean by defaults?

> I've tried with the mock method and also by manually creating new Mock
> instances.  I get failures when setting up expectations (undefined
> method 'receive' for proc).
>

Please provide some code so we can see what you're trying to do.
Also, which version of RSpec are you using?

> Chris
> _______________________________________________
> Rspec-users mailing list
> Rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the Rspec-users mailing list