[Rspec-users] overriding mock expectations

Steven R. Baker srbaker at pobox.com
Mon Oct 23 18:55:19 EDT 2006


> What I would like to do is define all the should_receives once in  
> the setup using any_number_of_times.  This establishes a default  
> context.  Then in each spec I'd like to override a specific  
> should_receive relevant to the spec.
>
> Without being able to override, I am force to define all the  
> should_receives for each spec..... duplication.
>
> Is there another solution I'm missing?

We need you to write a patch for this.

If you don't feel confident doing it, I'll take a crack at it when I  
get home if you harass me on IM.

srbaker0 yahoo
stevenrbaker at mac.com .mac
srbaker0 at hotmail.com msn

-Steven


>



More information about the Rspec-users mailing list