Jon Leighton wrote:
> I would recommend building up a set of integration tests using Cucumber
> or similar: http://cukes.info/. This will allow you to check that all
> the "moving parts" of your applications are working together correctly,
> including that your routes/redirections/views are free from errors. You
> can find a list of tutorials here:
> http://wiki.github.com/aslakhellesoy/cucumber/tutorials-and-related-blog-posts

An alternative, or more likely in combination with cucumber stories, 
RSSpec provides routing expectations:

Examples:
route_for(:controller => "hello", :action => "world").should == 
"/hello/world"
params_from(:get, "/hello/world").should == {:controller => "hello", 
:action => "world"}

So one could list all routes with "rake routes" and then write RSpec 
examples to test them.
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to