1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Silence deprecation message for dynamic controller and actions on action_view test cases

This commit is contained in:
Mehmet Emin İNAÇ 2016-03-07 03:57:16 +02:00
parent af80974f85
commit 47c5b70977

View file

@ -93,12 +93,14 @@ module ActionDispatch
super
return if DrawOnce.drew
SharedTestRoutes.draw do
get ':controller(/:action)'
end
ActiveSupport::Deprecation.silence do
SharedTestRoutes.draw do
get ':controller(/:action)'
end
ActionDispatch::IntegrationTest.app.routes.draw do
get ':controller(/:action)'
ActionDispatch::IntegrationTest.app.routes.draw do
get ':controller(/:action)'
end
end
DrawOnce.drew = true