This project is archived and is in readonly mode.

#3279 ✓invalid
Nikolai Lugovoi

[patch] fix routing for actionpack tests - 1.9.2 compatibility

Reported by Nikolai Lugovoi | September 27th, 2009 @ 07:33 PM

Found some odd behaviour, trying to run actionpack tests on ruby 1.9.2dev using rails master -- many of routing tests were failing.

So, I had to patch abstract_unit.rb :

diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb
index aef3dd6..96d0e6e 100644
--- a/actionpack/test/abstract_unit.rb
+++ b/actionpack/test/abstract_unit.rb
@@ -123,8 +123,8 @@ class ::ApplicationController < ActionController::Base

 module ActionController
-  class << Routing
-    def possible_controllers
+  module Routing
+    def self.possible_controllers
       @@possible_controllers ||= []

otherwise, ActionController::Routing.possible_controllers returned always a new, empty Array object, so route recognition regexp never was constructed properly.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>