hi, i have a partial that works fine in my application but when i run functional tests they fail when my partial references any locals that I have passed in. if i change references to ''locals'' in the partial to have a @ prepended the tests run fine but it doesn''t work in the app. any suggestions? thanks, mike --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 10/5/07, mike <mikebannister-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > hi, > > i have a partial that works fine in my application but when i run > functional tests they fail when my partial references any locals that > I have passed in. if i change references to ''locals'' in the partial to > have a @ prepended the tests run fine but it doesn''t work in the app. > any suggestions?Not enough info. Post your code and your tests. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Maybe use the debugger to analyze what is happening. Bob Showalter wrote:> On 10/5/07, mike <mikebannister-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> hi, >> >> i have a partial that works fine in my application but when i run >> functional tests they fail when my partial references any locals that >> I have passed in. if i change references to ''locals'' in the partial to >> have a @ prepended the tests run fine but it doesn''t work in the app. >> any suggestions? > > Not enough info. Post your code and your tests.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Cool thanks. I haven''t had a chance to do anything about it but it occurred to me what the problem was. The partial relies on a global var that I forgot to make sure was set in one of my controllers. Whenever a test like this fails it''s always such a great reassurance of the value of testing. Thanks again for your input. -Mike On 10/5/07, Roger Pack <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Maybe use the debugger to analyze what is happening. > > Bob Showalter wrote: > > On 10/5/07, mike <mikebannister-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > >> hi, > >> > >> i have a partial that works fine in my application but when i run > >> functional tests they fail when my partial references any locals that > >> I have passed in. if i change references to ''locals'' in the partial to > >> have a @ prepended the tests run fine but it doesn''t work in the app. > >> any suggestions? > > > > Not enough info. Post your code and your tests. > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---