diff options
author | Aditya Kapoor <adityakapoor.mait@gmail.com> | 2015-08-23 21:38:49 +0530 |
---|---|---|
committer | Aditya Kapoor <adityakapoor.mait@gmail.com> | 2015-08-24 01:02:14 +0530 |
commit | b393c6af92475c6604218f5f056a1f242385dc8e (patch) | |
tree | a14b296c114d9c356fb26812db19f73b9d5ec4df /actionpack | |
parent | 0ae0b3a5b43c8b89b5925a7d39cc6459315429ef (diff) | |
download | rails-b393c6af92475c6604218f5f056a1f242385dc8e.tar.gz rails-b393c6af92475c6604218f5f056a1f242385dc8e.tar.bz2 rails-b393c6af92475c6604218f5f056a1f242385dc8e.zip |
Trim out unneeded controllers from AP test suite
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/abstract_unit.rb | 2 | ||||
-rw-r--r-- | actionpack/test/controller/resources_test.rb | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb index fa0b6087ba..d4a0f6ddb6 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -369,13 +369,11 @@ class ThreadsController < ResourcesController; end class MessagesController < ResourcesController; end class CommentsController < ResourcesController; end class ReviewsController < 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 diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb index dd7c128566..280865d2a8 100644 --- a/actionpack/test/controller/resources_test.rb +++ b/actionpack/test/controller/resources_test.rb @@ -519,9 +519,9 @@ class ResourcesTest < ActionController::TestCase end def test_should_create_multiple_singleton_resource_routes - with_singleton_resources :account, :logo do + with_singleton_resources :account, :product do assert_singleton_restful_for :account - assert_singleton_restful_for :logo + assert_singleton_restful_for :product end end @@ -1070,8 +1070,8 @@ class ResourcesTest < ActionController::TestCase end def test_singleton_resource_name_is_not_singularized - with_singleton_resources(:preferences) do - assert_singleton_restful_for :preferences + with_singleton_resources(:products) do + assert_singleton_restful_for :products end end |