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

Zach Dennis zach.dennis at gmail.com
Fri Apr 25 16:25:17 EDT 2008


Do this...

  after do
    eval IO.read(RAILS_ROOT + "/config/routes.rb")
  end

Zach

On Thu, Apr 24, 2008 at 2:20 AM, Andy Croll <lists at ruby-forum.com> wrote:

> 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?
>
> Andy
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
Zach Dennis
http://www.continuousthinking.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080425/0566c759/attachment.html>


More information about the rspec-users mailing list