[rspec-users] Working outside-in with Cucumber and RSpec

Nick Hoffman nick at deadorange.com
Sat Nov 1 11:57:14 EDT 2008

On 2008-10-31, at 20:17, Pat Maddox wrote:
> Nick Hoffman <nick at deadorange.com> writes:
>> I can make this 22-line action a
>> bit shorter?  =)
>> http://refactormycode.com/codes/575-dry-up-a-controller-action
> I should have known I'd get called out on this :)
> I pushed around some stuff that I think should be in the model.  The
> other thing that I thought, but didn't change (I don't really know  
> what
> you're doing with this action) is these render_to_string calls.  Maybe
> you have a good reason for it, but I would just do regular "render
> :partial..." calls in the view.
> Pat

Thanks for taking a look, Pat. Much appreciated!

More information about the rspec-users mailing list