[rspec-users] Spec'ing chained calls

Levy Carneiro Jr. levy at levycarneiro.com
Fri Mar 13 10:04:30 EDT 2009


I'm trying to spec a method, that has several chained calls.

http://gist.github.com/78562 (spec)
http://gist.github.com/78563 (model)

In the first spec, I'm trying to focus on the method calls that have to be
made, and the arguments they should receive.

Is there a better way to spec the behaviour for these chained calls? It just
seems too many lines to me :)

Thanks a lot!
PS: I'm using my branch of the twitter gem, at
http://github.com/levycarneiro/twitter, which just adds this method
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090313/0a68960f/attachment.html>

More information about the rspec-users mailing list