aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/routing_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/routing_test.rb')
-rw-r--r--actionpack/test/controller/routing_test.rb23
1 files changed, 1 insertions, 22 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb
index 23d741a58f..cec1b0313d 100644
--- a/actionpack/test/controller/routing_test.rb
+++ b/actionpack/test/controller/routing_test.rb
@@ -1,4 +1,5 @@
require File.dirname(__FILE__) + '/../abstract_unit'
+require File.dirname(__FILE__) + '/fake_controllers'
require 'test/unit'
require 'stringio'
@@ -94,28 +95,6 @@ class CodeGeneratorTests < Test::Unit::TestCase
end
end
-# XXX Extract to test/controller/fake_controllers.rb
-module Object::Controllers
- def self.const_available?(*args)
- const_defined?(*args)
- end
-
- class ContentController
- end
- module Admin
- def self.const_available?(*args)
- const_defined?(*args)
- end
-
- class UserController
- end
-
- class NewsFeedController
- end
- end
-end
-
-
class RecognitionTests < Test::Unit::TestCase
attr_accessor :generator
alias :g :generator