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 <[EMAIL PROTECTED]> 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
> [email protected]
> http://rubyforge.org/mailman/listinfo/rspec-users
>
--
Zach Dennis
http://www.continuousthinking.com
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users