On Oct 14, 1:19 pm, Patrick Doyle <wpds...@gmail.com> wrote:
>
> The problem is, there is an instance variable in my controller that is
> set during the handling of the first #add_lot_to_assembly action.  It
> remains set for the second invocation of #xhr.  This makes me think
> that the controller instance is not reinstantiated between calls to
> #xhr.
>
> Am I misunderstanding this?

It sounds like you've got a clear idea what's going on.

>
> Is there some way to reinstantiate the controller prior to the 2nd xhr call?
>
> Is there a better way to have structured my functional test?
>
> Should I be using something other than a functional test to test this
> sort of behavior?

The standard way of doing multiple requests in a test is to use an
integration test. It already takes care of a lot of the stuff you'd
need to deal with trying to shoehorn this into a functional test.

--Matt Jones
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to