aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/lib/controller/fake_controllers.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-01 22:22:48 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-01 22:22:48 -0600
commit7fe19d415ab80727d685c163d7a0413ca6bfe585 (patch)
tree87322250e62b727bc8df7001b2c6c5459a8bc183 /actionpack/test/lib/controller/fake_controllers.rb
parent30ae3538a3e281be3d6e8ca337a0790c71f8a9b2 (diff)
downloadrails-7fe19d415ab80727d685c163d7a0413ca6bfe585.tar.gz
rails-7fe19d415ab80727d685c163d7a0413ca6bfe585.tar.bz2
rails-7fe19d415ab80727d685c163d7a0413ca6bfe585.zip
Make recognize try to constantize controller to see if it exists
Diffstat (limited to 'actionpack/test/lib/controller/fake_controllers.rb')
-rw-r--r--actionpack/test/lib/controller/fake_controllers.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/actionpack/test/lib/controller/fake_controllers.rb b/actionpack/test/lib/controller/fake_controllers.rb
index 250327e6dc..09692f77b5 100644
--- a/actionpack/test/lib/controller/fake_controllers.rb
+++ b/actionpack/test/lib/controller/fake_controllers.rb
@@ -1,37 +1,48 @@
class << Object; alias_method :const_available?, :const_defined?; end
class ContentController < ActionController::Base; end
-class NotAController; end
module Admin
class << self; alias_method :const_available?, :const_defined?; end
+ class AccountsController < ActionController::Base; end
class NewsFeedController < ActionController::Base; end
class PostsController < ActionController::Base; end
class StuffController < ActionController::Base; end
class UserController < ActionController::Base; end
+ class UsersController < ActionController::Base; end
end
module Api
+ class UsersController < ActionController::Base; end
class ProductsController < ActionController::Base; end
end
# TODO: Reduce the number of test controllers we use
+class AccountController < ActionController::Base; end
class AddressesController < ActionController::Base; end
+class ArchiveController < ActionController::Base; end
class ArticlesController < ActionController::Base; end
class BarController < ActionController::Base; end
+class BlogController < ActionController::Base; end
class BooksController < ActionController::Base; end
class BraveController < ActionController::Base; end
+class CarsController < ActionController::Base; end
+class CcController < ActionController::Base; end
class CController < ActionController::Base; end
class ElsewhereController < ActionController::Base; end
class FooController < ActionController::Base; end
+class GeocodeController < ActionController::Base; end
class HiController < ActionController::Base; end
class ImageController < ActionController::Base; end
+class NewsController < ActionController::Base; end
class NotesController < ActionController::Base; end
class PeopleController < ActionController::Base; end
class PostsController < ActionController::Base; end
class SessionsController < ActionController::Base; end
class StuffController < ActionController::Base; end
class SubpathBooksController < ActionController::Base; end
+class SymbolsController < ActionController::Base; end
+class UserController < ActionController::Base; end
class WeblogController < ActionController::Base; end
# For speed test