Re: [rspec-users] #stub! and #should_receive on the same method

2008-09-25 Thread Tero Tilus
2008-09-25 13:47, Nick Hoffman: I'm calling #stub! and #should_receive on the same method within a class, and am finding that the method doesn't return the value given to #stub! How about GMarker.should_receive(:new).with(foo).and_return mock_marker -- Tero Tilus ## 050 3635 235 ##

Re: [rspec-users] #stub! and #should_receive on the same method

2008-09-25 Thread Nick Hoffman
On 2008-09-25, at 13:58, Tero Tilus wrote: 2008-09-25 13:47, Nick Hoffman: I'm calling #stub! and #should_receive on the same method within a class, and am finding that the method doesn't return the value given to #stub! How about GMarker.should_receive(:new).with(foo).and_return

Re: [rspec-users] #stub! and #should_receive on the same method

2008-09-25 Thread David Chelimsky
On Thu, Sep 25, 2008 at 12:47 PM, Nick Hoffman [EMAIL PROTECTED] wrote: I'm calling #stub! and #should_receive on the same method within a class, and am finding that the method doesn't return the value given to #stub! 216 it 'should make a map marker' do 217 mock_property = mock

Re: [rspec-users] #stub! and #should_receive on the same method

2008-09-25 Thread David Chelimsky
On Thu, Sep 25, 2008 at 1:04 PM, Nick Hoffman [EMAIL PROTECTED] wrote: On 2008-09-25, at 13:58, Tero Tilus wrote: 2008-09-25 13:47, Nick Hoffman: I'm calling #stub! and #should_receive on the same method within a class, and am finding that the method doesn't return the value given to #stub!

Re: [rspec-users] #stub! and #should_receive on the same method

2008-09-25 Thread Tero Tilus
2008-09-25 14:04, Nick Hoffman: I knew there was a dead simple answer to the question. Thanks, Tero. Apologies for the brain fart. Np. Done the same quite a few times myself. ;) -- Tero Tilus ## 050 3635 235 ## http://www.tilus.net/koti/tero/ ___

Re: [rspec-users] #stub! and #should_receive on the same method

2008-09-25 Thread Nick Hoffman
On 2008-09-25, at 14:04, David Chelimsky wrote: On Thu, Sep 25, 2008 at 12:47 PM, Nick Hoffman [EMAIL PROTECTED] wrote: I'm calling #stub! and #should_receive on the same method within a class, and am finding that the method doesn't return the value given to #stub! 216 it 'should make

Re: [rspec-users] #stub! and #should_receive on the same method

2008-09-25 Thread David Chelimsky
On Thu, Sep 25, 2008 at 1:34 PM, Nick Hoffman [EMAIL PROTECTED] wrote: On 2008-09-25, at 14:04, David Chelimsky wrote: On Thu, Sep 25, 2008 at 12:47 PM, Nick Hoffman [EMAIL PROTECTED] wrote: I'm calling #stub! and #should_receive on the same method within a class, and am finding that the