[rspec-users] Depot app, Demeter's law and troubles cleanly spe cing

Fernando Perez lists at ruby-forum.com
Thu Apr 23 14:19:42 EDT 2009

Rails definitely entices you to break Demeter's law just so often.

Now how to cleanly spec:

@comment = @article.comments.build(params[:comment]) ?

Mocking and stubbing is starting to get ugly now.

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list