Merge pull request #21345 from aditya-kapoor/trim-ap

Trim out least needed controllers from AP test suite
This commit is contained in:
Rafael Mendonça França 2015-08-25 12:44:34 -03:00
commit e84cc9afe4
2 changed files with 4 additions and 6 deletions

@ -381,13 +381,11 @@ class ThreadsController < ResourcesController; end
class MessagesController < ResourcesController; end class MessagesController < ResourcesController; end
class CommentsController < ResourcesController; end class CommentsController < ResourcesController; end
class ReviewsController < ResourcesController; end class ReviewsController < ResourcesController; end
class LogosController < ResourcesController; end
class AccountsController < ResourcesController; end class AccountsController < ResourcesController; end
class AdminController < ResourcesController; end class AdminController < ResourcesController; end
class ProductsController < ResourcesController; end class ProductsController < ResourcesController; end
class ImagesController < ResourcesController; end class ImagesController < ResourcesController; end
class PreferencesController < ResourcesController; end
module Backoffice module Backoffice
class ProductsController < ResourcesController; end class ProductsController < ResourcesController; end

@ -519,9 +519,9 @@ def test_should_create_singleton_resource_routes
end end
def test_should_create_multiple_singleton_resource_routes 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 :account
assert_singleton_restful_for :logo assert_singleton_restful_for :product
end end
end end
@ -1070,8 +1070,8 @@ def test_assert_routing_fails_when_not_all_http_methods_are_recognized
end end
def test_singleton_resource_name_is_not_singularized def test_singleton_resource_name_is_not_singularized
with_singleton_resources(:preferences) do with_singleton_resources(:products) do
assert_singleton_restful_for :preferences assert_singleton_restful_for :products
end end
end end