aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/routing_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-11-13 01:17:10 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-11-13 01:17:10 +0000
commitf8486e8f1087717e72f819921e281d3ae0aab291 (patch)
treea07d7cb10f14fb07abaddebb2df936ad6e285991 /actionpack/test/controller/routing_test.rb
parentafe49dcf5b0219afd989aaeb1ff6fc9ab6b70a43 (diff)
downloadrails-f8486e8f1087717e72f819921e281d3ae0aab291.tar.gz
rails-f8486e8f1087717e72f819921e281d3ae0aab291.tar.bz2
rails-f8486e8f1087717e72f819921e281d3ae0aab291.zip
silence const_set warning
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/routing_test.rb')
-rw-r--r--actionpack/test/controller/routing_test.rb11
1 files changed, 7 insertions, 4 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb
index d39e4d98ab..cfba8fb976 100644
--- a/actionpack/test/controller/routing_test.rb
+++ b/actionpack/test/controller/routing_test.rb
@@ -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'
]
@@ -1734,4 +1737,4 @@ class RoutingTest < Test::Unit::TestCase
assert_equal %w(vendor\\rails\\railties\\builtin\\rails_info vendor\\rails\\actionpack\\lib app\\controllers app\\helpers app\\models lib .), paths
end
-end \ No newline at end of file
+end