On 2008-10-30, at 15:31, Pat Maddox wrote:
eh I dunno.  I mean, I completely agree that hard-to-write tests often
expose bad code.  But there isn't any gray area when it comes to
designing Rails controllers, in my opinion. I see an action that's more
than five lines long and I know it's wrong.  I don't need to write
examples to tell me that.

Hi Pat. Would you mind suggesting how I can make this 22-line action a bit shorter? =)
http://refactormycode.com/codes/575-dry-up-a-controller-action

Thanks!
Nick
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to