[rspec-users] should_receive_chain
Tim Gremore
timgremore at gmail.com
Tue Feb 21 14:10:13 UTC 2012
+1
I've often wondered if there is a better way to stub this situation.
On Tue, Feb 21, 2012 at 7:43 AM, Ken Chien <ken.chien at gmail.com> wrote:
> Hi Justin,
>
> On Tue, Feb 21, 2012 at 4:03 AM, Justin Ko <jko170 at gmail.com> wrote:
>
>> Would you like to do this?
>>
>> account.should_receive_chain(:users, :active, :first)
>>
>>
> I would love this syntax. I find that I usually resort to stub_chain and
> lose the ability to check that the object received a particular message.
>
>
>
>> Note, this would *not* be part of RSpec, but rather a separate gem.
>>
>> Would this alleviate any pain for you?
>>
>
> Why can't it be a part of RSpec? Regardless, it would be a nice addition
> to my specs.
>
> Regards,
> Ken
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
--
Tim Gremore
920 471-1716
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20120221/a0ff4cf9/attachment.html>
More information about the rspec-users
mailing list