aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/resources_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/resources_test.rb')
-rw-r--r--actionpack/test/controller/resources_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb
index 57b956e777..29c25e6cfc 100644
--- a/actionpack/test/controller/resources_test.rb
+++ b/actionpack/test/controller/resources_test.rb
@@ -26,6 +26,18 @@ module Backoffice
end
class ResourcesTest < Test::Unit::TestCase
+
+
+ # The assertions in these tests are incompatible with the hash method
+ # optimisation. This could indicate user level problems
+ def setup
+ ActionController::Routing.optimise_named_routes = false
+ end
+
+ def tear_down
+ ActionController::Routing.optimise_named_routes = true
+ end
+
def test_should_arrange_actions
resource = ActionController::Resources::Resource.new(:messages,
:collection => { :rss => :get, :reorder => :post, :csv => :post },