Skip to content

Commit

Permalink
Improve tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jul 26, 2010
1 parent 3a97095 commit b86e0ef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ class ApplicationController < ActionController::Base
ActionController::Base.view_paths = File.join(File.dirname(__FILE__), 'views')

Responders::Routes = ActionDispatch::Routing::RouteSet.new
Responders::Routes.draw do |map|
map.connect 'admin/:action', :controller => "admin/addresses"
map.connect ':controller/:action/:id'
map.connect ':controller/:action'
Responders::Routes.draw do
match '/admin/:action', :controller => "admin/addresses"
match '/:controller(/:action(/:id))'
end

ActionController::Base.send :include, Responders::Routes.url_helpers
Expand Down

0 comments on commit b86e0ef

Please sign in to comment.