Re: [Rails] Re: Mocking, a common practice

2010-04-23 Thread Franz Strebel
Check out flexmock as well http://flexmock.rubyforge.org/ On Fri, Apr 23, 2010 at 11:09 AM, Frederick Cheung wrote: > > > On Apr 23, 8:33 am, mariek wrote: > >> And the reason why I need to do it this way is because in some >> particular tests I need to mock the class method and in other i don'

[Rails] Re: Mocking, a common practice

2010-04-23 Thread Frederick Cheung
On Apr 23, 8:33 am, mariek wrote: > And the reason why I need to do it this way is because in some > particular tests I need to mock the class method and in other i don't. > In my case it is about calls to sandbox. In some tests I check if they > are made correctly and in other I test only logi