Functional testing Pretty Urls


#1

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 C.
removed_email_address@domain.invalid


#2

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.


#3

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