[rspec-users] Multiple calls to a class method

Ashley Moran work at ashleymoran.me.uk
Tue Jul 10 10:19:55 EDT 2007


On 10 Jul 2007, at 13:16, David Chelimsky wrote:

> This is pretty standard in mocking frameworks. In fact, your
> frustration was Jim Weirich's motivation for writing Flexmock, so you
> may want to give that framework a shot.

<snip>

> This tells the Date class object to ignore all extract_from_rails_hash
> messages except the one that you are interested in in th example.

Thanks for clearing that up.  I might take a look at FlexMock some  
time and see how it compares.  I don't run into this problem often so  
it was more of a philosophical question but nice to know there's at  
least a workaround.

Regards Ashley





More information about the rspec-users mailing list