aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/lib
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-08-25 23:34:48 -0500
committerJoshua Peek <josh@joshpeek.com>2009-08-25 23:34:48 -0500
commit78129b1731a1e6f3b091e996bcf55917d84b5f0e (patch)
treec0a67853e12d5825dfaf645de7292ef96b4c9ba8 /actionpack/test/lib
parent5bc66f160d03bd60a748ac65728227ed9e4fc577 (diff)
downloadrails-78129b1731a1e6f3b091e996bcf55917d84b5f0e.tar.gz
rails-78129b1731a1e6f3b091e996bcf55917d84b5f0e.tar.bz2
rails-78129b1731a1e6f3b091e996bcf55917d84b5f0e.zip
Track all AC base subclasses as possible controllers for internal testing
Diffstat (limited to 'actionpack/test/lib')
-rw-r--r--actionpack/test/lib/controller/fake_controllers.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/actionpack/test/lib/controller/fake_controllers.rb b/actionpack/test/lib/controller/fake_controllers.rb
index 75c114c103..6e02e2d21b 100644
--- a/actionpack/test/lib/controller/fake_controllers.rb
+++ b/actionpack/test/lib/controller/fake_controllers.rb
@@ -1,15 +1,16 @@
class << Object; alias_method :const_available?, :const_defined?; end
-
-class ContentController < Class.new(ActionController::Base)
+
+class ContentController < ActionController::Base
end
class NotAController
end
module Admin
class << self; alias_method :const_available?, :const_defined?; end
- class UserController < Class.new(ActionController::Base); end
- class NewsFeedController < Class.new(ActionController::Base); end
+ class UserController < ActionController::Base; end
+ class NewsFeedController < ActionController::Base; end
end
+
# For speed test
class SpeedController < ActionController::Base; end
class SearchController < SpeedController; end