[rspec-users] Best practice thoughts: Model helpers, mocks

s.ross cwdinfo at gmail.com
Thu Apr 19 13:07:36 EDT 2007

Why doesn't 0.8.2 work with haml? I've never had any issues with haml  
and I've been using it and rSpec for a while now...

On Apr 19, 2007, at 9:24 AM, James Hillyerd wrote:

> I'm not using integrated views, actually not doing any view testing at
> all right now since 0.8.2 doesn't work with HAML.  Not sure I would
> even if I could though.
> Part of the reason that setup method has so many objects is that it's
> part of a wizard, so I am re-validating everything I have stored in
> the session.  The wizard is also converting one object
> (signup_checkout) into a bunch of other objects (members * 4, renewals
> * 4).
> I probably should look at pushing some of my code into my model... But
> it seems like code dealing with a form object that is never saved to
> the database (signup_checkout is an "ActiveForm"
> http://www.realityforge.org/articles/2005/12/02/validations-for-non- 
> activerecord-model-objects)
> doesn't belong in the model, so I'm a little torn.
> -james
> On 4/19/07, Matthijs Langenberg <mlangenberg at gmail.com> wrote:
>> I guess you are using integrated views, aren't you? Focus on the
>> behaviour of your controller method, I don't think it would ever need
>> all those stubbed fields, but please prove me wrong.
> [..snip]
> -- 
> James A. Hillyerd <james at hillyerd.com>
> Chief Technical Officer - ActiveRain Corp
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list