Anyone know how to how to test pretty urls (set through routes.rb)? I want to don''t use get :action, because the routing changes how a certain action is requested. How does one go about testing this? Thanks, Tim Case tim@karmacrash.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060407/83770425/attachment.html
Integration testing should be able to do what you''re after. http://api.rubyonrails.org/classes/ActionController/IntegrationTest.html Functional testing is used to test actions on an individual controller. Integration testing makes you able to test your application at a higher level. -Jonathan. On 4/7/06, Tim Case <tcrails1@gmail.com> wrote:> > Anyone know how to how to test pretty urls (set through routes.rb)? I > want to don''t use get :action, because the routing changes how a certain > action is requested. How does one go about testing this? > > Thanks, > > Tim Case > tim@karmacrash.com >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060407/96afd7e7/attachment.html
You know I think you''re right, Integration testing is so new I hadn''t even thought of approaching this problem that way. Thanks! Tim On 4/6/06, Jonathan Viney <jonathan.viney@gmail.com> wrote:> > Integration testing should be able to do what you''re after. > > http://api.rubyonrails.org/classes/ActionController/IntegrationTest.html > > Functional testing is used to test actions on an individual controller. > Integration testing makes you able to test your application at a higher > level. > > -Jonathan. > > > On 4/7/06, Tim Case <tcrails1@gmail.com> wrote: > > > > Anyone know how to how to test pretty urls (set through routes.rb)? I > > want to don''t use get :action, because the routing changes how a certain > > action is requested. How does one go about testing this? > > > > Thanks, > > > > Tim Case > > tim@karmacrash.com > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060407/5950c399/attachment.html