I would suggest not worrying about it and learning to use stubs as part of your testing strategy.
* Stub things in unit tests that you own, so that you control when the public API is changing. * Expose small public API's on your models. * Write integration tests that use the real objects, they will tell you if you make a mistake when updating the stubs in your unit tests. Set your CI tasks up to run the unit tests first, followed by the slower integration tests. Fast feedback, with a slower suite run afterwards to ensure all of the pieces still play nicely with each other. On 28/02/2013, at 9:52 AM, Sebastian Porto <sebaspo...@gmail.com> wrote: > Hi all > > I am trying to make my unit tests faster by using doubles, but I am > afraid of creating an alternative reality in the tests by going to hard > with stubbing and mocking. So I want to use some kind of 'safe doubles'. > So far I have been looking at and trying: > > https://github.com/xaviershay/rspec-fire > https://github.com/se3000/better_receive > https://github.com/psyho/bogus > https://github.com/wilkerlucio/aidmock > > Anyone knows of any others I should have a look at? Any recommendations? > > Thanks, > Sebastian > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rails-oceania+unsubscr...@googlegroups.com. > To post to this group, send email to rails-oceania@googlegroups.com. > Visit this group at http://groups.google.com/group/rails-oceania?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at http://groups.google.com/group/rails-oceania?hl=en. For more options, visit https://groups.google.com/groups/opt_out.