aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/lib/controller/fake_controllers.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-05-22 16:11:54 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-05-22 16:11:54 -0700
commitca7207838844f02f50afbb18beb0f535903f7929 (patch)
treed116ce21039e3382989bd33a581f95990c91f424 /actionpack/test/lib/controller/fake_controllers.rb
parent98f856d7723bd8aa8ccc05dfb7219c897b4dcab7 (diff)
downloadrails-ca7207838844f02f50afbb18beb0f535903f7929.tar.gz
rails-ca7207838844f02f50afbb18beb0f535903f7929.tar.bz2
rails-ca7207838844f02f50afbb18beb0f535903f7929.zip
Move fake controllers and models to a common load path
Diffstat (limited to 'actionpack/test/lib/controller/fake_controllers.rb')
-rw-r--r--actionpack/test/lib/controller/fake_controllers.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/actionpack/test/lib/controller/fake_controllers.rb b/actionpack/test/lib/controller/fake_controllers.rb
new file mode 100644
index 0000000000..75c114c103
--- /dev/null
+++ b/actionpack/test/lib/controller/fake_controllers.rb
@@ -0,0 +1,33 @@
+class << Object; alias_method :const_available?, :const_defined?; end
+
+class ContentController < Class.new(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
+end
+
+# For speed test
+class SpeedController < ActionController::Base; end
+class SearchController < SpeedController; end
+class VideosController < SpeedController; end
+class VideoFileController < SpeedController; end
+class VideoSharesController < SpeedController; end
+class VideoAbusesController < SpeedController; end
+class VideoUploadsController < SpeedController; end
+class VideoVisitsController < SpeedController; end
+class UsersController < SpeedController; end
+class SettingsController < SpeedController; end
+class ChannelsController < SpeedController; end
+class ChannelVideosController < SpeedController; end
+class SessionsController < SpeedController; end
+class LostPasswordsController < SpeedController; end
+class PagesController < SpeedController; end
+
+ActionController::Routing::Routes.draw do |map|
+ map.route_one 'route_one', :controller => 'elsewhere', :action => 'flash_me'
+ map.connect ':controller/:action/:id'
+end