[rspec-users] Specifying RESTful Routes

David Chelimsky dchelimsky at gmail.com
Fri Mar 9 00:07:37 EST 2007

On 3/8/07, Jed Hurt <jed.hurt at gmail.com> wrote:
> What would be the proper way to specify this route?
> ActionController::Routing::Routes.draw do |map|
>   map.resource :recipes
> end

Take a look at the specs that get generated by this:

script/generate rspec_resource Recipes


> Would the specification go into recipes_controller_spec? Also, what
> methods are available for testing RESTful routes (i.e. GET, POST, PUT,
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list