[rspec-users] Spec the Application Controller application.rb

Andy Croll lists at ruby-forum.com
Thu Apr 24 02:20:20 EDT 2008

This bit however, replaces your other routes, so you cannot use them in 
your tests

>   before(:each) do
>     ActionController::Routing::Routes.draw do |map|
>       map.resources :foo
>     end
>   end

Is there a sensible way to append to the routes.rb that I'm missing?

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list