I''m trying to write a test for a modification I''ve done on link_to helper. The problem is that my patch is relying on url_for behaviour defined in link_to helper. In url_helper_test.rb test file url_for is overwrited for testing convinience. So my question is how can I do to test my modification using the real url_for method (the one in url_helper.rb). Is there a way to load it from the inside of my test or something like this? Thank you in advance. -- Nicolas Cavigneaux http://www.bounga.org http://www.cavigneaux.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Check actionpack/test/template/url_helper_test.rb Thanks, Pratik On 7/3/07, Nicolas Cavigneaux <nico-DRabjd/C3MEdnm+yROfE0A@public.gmane.org> wrote:> > I''m trying to write a test for a modification I''ve done on link_to > helper. The problem is that my patch is relying on url_for behaviour > defined in link_to helper. > > In url_helper_test.rb test file url_for is overwrited for testing > convinience. > > So my question is how can I do to test my modification using the real > url_for method (the one in url_helper.rb). Is there a way to load it > from the inside of my test or something like this? > > Thank you in advance. > -- > Nicolas Cavigneaux > http://www.bounga.org > http://www.cavigneaux.net > > > > > > >-- http://m.onkey.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Le 3 juil. 07 à 21:59, Pratik a écrit :> > Check actionpack/test/template/url_helper_test.rbThat''s the file in which I''m trying to write my test. My question was : is it possible in my test method (in actionpack/ test/template/url_helper_test.rb) to use the real url_for() implementation (the one in url_helper.rb file) rather than the one implemented (for the sake of testing) in the test file. I need to rely on the behaviour of url_for method implemented in actionpack/lib/actionview/helpers/url_helper.rb. My modification can''t be tested without the original url_for implementation. Any idea ? -- Nicolas Cavigneaux http://www.bounga.org http://www.cavigneaux.net --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---