tag:blogger.com,1999:blog-1502761093196431512.post6885016470708979454..comments2024-01-06T14:58:41.477+11:00Comments on Ruby-coloured glasses: Rspec mocks too muchTaryn Easthttp://www.blogger.com/profile/00647732421144825421noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1502761093196431512.post-9961902197274325352008-09-30T16:21:00.000+10:002008-09-30T16:21:00.000+10:00AFAIK there aren't any "written rules" for best pr...AFAIK there aren't any "written rules" for best practise - but these things tend to grow organically. What I was hoping for were to have a look at some specs that people would consider to cover the leading-edge of how rspec "should be used" - which is generally how best practise arises.<BR/><BR/>I did the same thing while learning test::unit and now have my own doc full of <A HREF="http://rubyglasses.blogspot.com/2007/08/actsasgoodstyle.html" REL="nofollow">good practise</A> (ie maybe not best, but still a good start).<BR/><BR/>I gathered these from reading blogposts, and writing my own tests and finding out neat tricks and when neat tricks fail.<BR/><BR/>I guess was hoping somebody else might have written a post like this about rspec ;)Taryn Easthttps://www.blogger.com/profile/00647732421144825421noreply@blogger.comtag:blogger.com,1999:blog-1502761093196431512.post-41129014990079571452008-09-29T17:26:00.000+10:002008-09-29T17:26:00.000+10:00As much I know about rspec, there are no default b...As much I know about rspec, there are no default best practices yet. Try what makes sense and are useful for you and keep your mind open to accept new trends (what comes out from practice). For example, controller and especially view specs are shadowed by cucumber (http://groups.google.com/group/rspec/msg/d20771295b3a3bb3). I have fall in love cucumber and selenium tests and doing all viewsAnonymousnoreply@blogger.com