I started testing routes for the first time in Rails 3 this weekend during Rails Rumble. I was so exhausted that I found writing route specs a very painful task. I came up with my own routing DSL and I'd love to see it get included in RSpec itself. Before I start adding the code to rspec-rails, I'd like to get some feedback and see if there are some ways we could clean it up. Basically the DSL looks like:
describe "My routes" do get "/blog" => { controller: "blogs-controller", action: "index" } end You can see all the details and the module used to make it work here: http://gist.github.com/630176. Thoughts? _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users