Re: [rspec-users] How best to intercept one method in the midst of a chain

2010-11-07 Thread David Chelimsky
On Nov 6, 2010, at 7:10 PM, Hedge Hog wrote: > Hi Group, > I'm back to Rspec after some time away, and was a little curious about > why the following example does not return the value zero. > > ​​https://gist.github.com/665226 > > I have tried @repo.status.__send__{type.to_sym}.size and got the

[rspec-users] How best to intercept one method in the midst of a chain

2010-11-06 Thread Hedge Hog
Hi Group, I'm back to Rspec after some time away, and was a little curious about why the following example does not return the value zero. ​​https://gist.github.com/665226 I have tried @repo.status.__send__{type.to_sym}.size and got the same result, and I suspected the send was maybe bypassing rs