Re: [rspec-users] Using "with(params)" with stubs make any sense?

2009-08-30 Thread Matt Wynne
On 28 Aug 2009, at 19:44, Marcelo de Moraes Serpa wrote: Hello list, Since stubs don't set expectations, do we have any use-case where stubbing like this makes sense: @mock.stub!(:method).with(anything()).and_return(@collection). It is clear that and_return is the value from stubbing, but

Re: [rspec-users] [Q] testing WIN32OLE_EVENT callbacks

2009-08-30 Thread Chuck Remes
On Aug 27, 2009, at 12:22 PM, Matt Wynne wrote: On 27 Aug 2009, at 17:02, Chuck Remes wrote: Let's assume that method1 and method2 are acting upon other objects that I can also mock via DI. How can I generate the 'StartEvent' so that the block above is executed? BTW, the layers are as se