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:
parent
af80974f85
commit
47c5b70977
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue