diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-08-25 12:44:34 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-08-25 12:44:34 -0300 |
commit | e84cc9afe4780f28993d5525665834e58e1ac3eb (patch) | |
tree | f5f4179ec6104a201aebbd7ce7ae0bfabfe33f02 /actionpack | |
parent | 61ebc20cdfeb68cd7e6d2e698a5b20f8449131e6 (diff) | |
parent | b393c6af92475c6604218f5f056a1f242385dc8e (diff) | |
download | rails-e84cc9afe4780f28993d5525665834e58e1ac3eb.tar.gz rails-e84cc9afe4780f28993d5525665834e58e1ac3eb.tar.bz2 rails-e84cc9afe4780f28993d5525665834e58e1ac3eb.zip |
Merge pull request #21345 from aditya-kapoor/trim-ap
Trim out least needed 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 69aff7e518..ce5ecb9be7 100644 --- a/actionpack/test/abstract_unit.rb +++ b/actionpack/test/abstract_unit.rb @@ -381,13 +381,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 |