diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-13 19:02:00 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-13 21:43:18 -0300 |
commit | 546497d027f9e4e55e99dbf7b499bb091d6b5d24 (patch) | |
tree | 4d93b1b8b27a6bd61f03224268e43f8a9b8a398f /actionpack/test/controller | |
parent | 0dd24728a088fcb4ae616bb5d62734aca5276b1b (diff) | |
download | rails-546497d027f9e4e55e99dbf7b499bb091d6b5d24.tar.gz rails-546497d027f9e4e55e99dbf7b499bb091d6b5d24.tar.bz2 rails-546497d027f9e4e55e99dbf7b499bb091d6b5d24.zip |
Extract common controllers to abstract_unit
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/resources_test.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb index 236e16c68e..305659b219 100644 --- a/actionpack/test/controller/resources_test.rb +++ b/actionpack/test/controller/resources_test.rb @@ -2,35 +2,6 @@ require 'abstract_unit' require 'active_support/core_ext/object/try' require 'active_support/core_ext/object/with_options' -class ResourcesController < ActionController::Base - def index() render :nothing => true end - alias_method :show, :index -end - -class ThreadsController < ResourcesController; end -class MessagesController < ResourcesController; end -class CommentsController < ResourcesController; end -class AuthorsController < ResourcesController; end -class LogosController < ResourcesController; end - -class AccountsController < ResourcesController; end -class AdminController < ResourcesController; end -class ProductsController < ResourcesController; end -class ImagesController < ResourcesController; end -class PreferencesController < ResourcesController; end - -module Backoffice - class ProductsController < ResourcesController; end - class TagsController < ResourcesController; end - class ManufacturersController < ResourcesController; end - class ImagesController < ResourcesController; end - - module Admin - class ProductsController < ResourcesController; end - class ImagesController < ResourcesController; end - end -end - class ResourcesTest < ActionController::TestCase def test_default_restful_routes with_restful_routing :messages do |