On Sat, 24 Jan 2009 06:53:26 -0800
Phlip <[email protected]> wrote:
> 
> Jacques Crocker wrote:
> 
>  > I actually wouldn't mind having a nice and easy way to spec partials.
>  > They wouldn't work well as acceptance tests of course, it would be
>  > cool to be able to set some instance variables, and some partial
>  > locals, run the generator, then spec the results using have_selector
>  > to get a better sense of progress as you're building up something.
> 
> One project at my day job is an in-house app that targets only Firefox. This 
> gives us free rein with the Ajax Abuse. User actions force screen update that 
> replace the contents of divs with new renderings of partials.
> 
> This means testing the contents of partials, in isolation, is mission 
> critical.
> 

I don't know what you mean by isolation in this context.

If the browser is getting the content via an AJAX request, it must be making 
that AJAX request to your application.  This request will hit your application 
with certain parameters, and then your app will return the content.

Why not just test the responses of whichever action the AJAX hits and check 
that that content is accurate?  That is as much as your AJAX requests care 
about, because they'll never see anything more.

Regards,
Jon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to