diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-03-17 08:27:21 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-03-17 08:27:21 +0100 |
commit | 7b71a0dfc2509b5131eb4a49da099d74d1c3f2f0 (patch) | |
tree | d2f663748a34541a47ab8a6ad46e84852b2ff8a5 /railties | |
parent | f244a12cc66d4e98b640e46f57f535d02a1453f5 (diff) | |
parent | 82a1680fb1b9c733371bb46e9427c25bc2280ff5 (diff) | |
download | rails-7b71a0dfc2509b5131eb4a49da099d74d1c3f2f0.tar.gz rails-7b71a0dfc2509b5131eb4a49da099d74d1c3f2f0.tar.bz2 rails-7b71a0dfc2509b5131eb4a49da099d74d1c3f2f0.zip |
Merge pull request #19373 from artofhuman/fix_deprecation_warns_in_tests
Fix deprecation warning in rails_info_controller tests
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/rails_info_controller_test.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/railties/test/rails_info_controller_test.rb b/railties/test/rails_info_controller_test.rb index d87b51d852..c51503c2b7 100644 --- a/railties/test/rails_info_controller_test.rb +++ b/railties/test/rails_info_controller_test.rb @@ -56,26 +56,26 @@ class InfoControllerTest < ActionController::TestCase test "info controller returns exact matches" do exact_count = -> { JSON(response.body)['exact'].size } - get :routes, path: 'rails/info/route' + get :routes, params: { path: 'rails/info/route' } assert exact_count.call == 0, 'should not match incomplete routes' - get :routes, path: 'rails/info/routes' + get :routes, params: { path: 'rails/info/routes' } assert exact_count.call == 1, 'should match complete routes' - - get :routes, path: 'rails/info/routes.html' + + get :routes, params: { path: 'rails/info/routes.html' } assert exact_count.call == 1, 'should match complete routes with optional parts' end test "info controller returns fuzzy matches" do fuzzy_count = -> { JSON(response.body)['fuzzy'].size } - get :routes, path: 'rails/info' + get :routes, params: { path: 'rails/info' } assert fuzzy_count.call == 2, 'should match incomplete routes' - get :routes, path: 'rails/info/routes' + get :routes, params: { path: 'rails/info/routes' } assert fuzzy_count.call == 1, 'should match complete routes' - - get :routes, path: 'rails/info/routes.html' + + get :routes, params: { path: 'rails/info/routes.html' } assert fuzzy_count.call == 0, 'should match optional parts of route literally' end end |