Re: [rspec-users] undefined method `and_return'

2009-08-27 Thread Oliver Barnes
does that shed any light? 2009/8/26 Oliver Barnes : > sure thing: > > http://pastie.org/595363 > > 2009/8/26 David Chelimsky : >> On Tue, Aug 25, 2009 at 6:19 PM, Oliver >> Barnes wrote: >>> Hello, >>> >>> I'm struggling with this controller spec for a few hours now >>> >>> http://pastie.org/59477

Re: [rspec-users] undefined method `and_return'

2009-08-27 Thread David Chelimsky
Sorry, but no. The spec you showed in the original email should work exactly as you expect. Somehow, for reasons I don't understand, stub!() appears to be returning a Proc instead of a mock proxy object. On Thu, Aug 27, 2009 at 9:35 AM, Oliver Barnes wrote: > does that shed any light? > > 2009/8/2

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

2009-08-27 Thread Matt Wynne
On 26 Aug 2009, at 19:57, Chuck Remes wrote: I'm trying to setup some specs (really just assertions) that verify some callbacks are executed in response to COM events. In the WIN32OLE_EVENT class you may subscribe to a COM event and have it delivered to you for processing. Syntax looks lik

Re: [rspec-users] undefined method `and_return'

2009-08-27 Thread Oliver Barnes
i guess it must be something wrong with my setup then? i've been messing with my gem infrastructure. going to try reinstalling rspec 2009/8/27 David Chelimsky : > Sorry, but no. The spec you showed in the original email should work > exactly as you expect. Somehow, for reasons I don't understand,

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

2009-08-27 Thread Chuck Remes
On Aug 27, 2009, at 10:12 AM, Matt Wynne wrote: On 26 Aug 2009, at 19:57, Chuck Remes wrote: I'm trying to setup some specs (really just assertions) that verify some callbacks are executed in response to COM events. In the WIN32OLE_EVENT class you may subscribe to a COM event and have it

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

2009-08-27 Thread Matt Wynne
On 27 Aug 2009, at 17:02, Chuck Remes wrote: On Aug 27, 2009, at 10:12 AM, Matt Wynne wrote: On 26 Aug 2009, at 19:57, Chuck Remes wrote: I'm trying to setup some specs (really just assertions) that verify some callbacks are executed in response to COM events. In the WIN32OLE_EVENT cla