Ruby on Rails Thursday, September 30, 2010

Robert Walker wrote:
> 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.

Alright, thank you. But there's no way to let it test all routes
automatically extracted from "rake routes"?
--
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@googlegroups.com.
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.

No comments:

Post a Comment