[rspec-users] Mocking/Stubbing ActiveRecord.config.default_timezone

Mark Wilden mark at mwilden.com
Mon Jan 26 12:57:06 EST 2009

On Mon, Jan 26, 2009 at 9:06 AM, James Byrne <lists at ruby-forum.com> wrote:

> I prefer the style of explicit returns.  It makes intent unambiguous.

The thing is that the Ruby idiom is to avoid unnecessary returns. Because of
this, using them actually makes code harder to read, because you have to
read it more carefully to see if they're being used for a legitimate reason.

Just one opinion.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090126/4bb494db/attachment.html>

More information about the rspec-users mailing list