Skip to content

Commit

Permalink
Merged [5503] from trunk
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-pre-release@5559 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Nov 18, 2006
1 parent fb60a46 commit 1e532f6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions actionpack/test/controller/routing_test.rb
Expand Up @@ -1673,10 +1673,13 @@ class RoutingTest < Test::Unit::TestCase

def test_possible_controllers
true_controller_paths = ActionController::Routing.controller_paths

ActionController::Routing.use_controllers! nil
Object.send(:const_set, :RAILS_ROOT, File.dirname(__FILE__) + '/controller_fixtures')


silence_warnings do
Object.send(:const_set, :RAILS_ROOT, File.dirname(__FILE__) + '/controller_fixtures')
end

ActionController::Routing.controller_paths = [
RAILS_ROOT, RAILS_ROOT + '/app/controllers', RAILS_ROOT + '/vendor/plugins/bad_plugin/lib'
]
Expand Down Expand Up @@ -1734,4 +1737,4 @@ def test_normalize_windows_paths
assert_equal %w(vendor\\rails\\railties\\builtin\\rails_info vendor\\rails\\actionpack\\lib app\\controllers app\\helpers app\\models lib .), paths
end

end
end

0 comments on commit 1e532f6

Please sign in to comment.