diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2016-03-07 03:57:16 +0200 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2016-03-07 03:57:16 +0200 |
commit | 47c5b709773c046916c295280067d112667ceca3 (patch) | |
tree | 26546ae5958f3c85aeb386d3567f4525f4ecb7e9 /actionview/test | |
parent | af80974f85f8ffb54e7aa2aea8e171f36c3a7ab3 (diff) | |
download | rails-47c5b709773c046916c295280067d112667ceca3.tar.gz rails-47c5b709773c046916c295280067d112667ceca3.tar.bz2 rails-47c5b709773c046916c295280067d112667ceca3.zip |
Silence deprecation message for dynamic controller and actions on action_view test cases
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/abstract_unit.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/actionview/test/abstract_unit.rb b/actionview/test/abstract_unit.rb index d31f7ddc6e..3256d8fc4d 100644 --- a/actionview/test/abstract_unit.rb +++ b/actionview/test/abstract_unit.rb @@ -93,12 +93,14 @@ module ActionDispatch super return if DrawOnce.drew - SharedTestRoutes.draw do - get ':controller(/:action)' - end - - ActionDispatch::IntegrationTest.app.routes.draw do - get ':controller(/:action)' + ActiveSupport::Deprecation.silence do + SharedTestRoutes.draw do + get ':controller(/:action)' + end + + ActionDispatch::IntegrationTest.app.routes.draw do + get ':controller(/:action)' + end end DrawOnce.drew = true |