diff options
author | Aditya Kapoor <adityakapoor.mait@gmail.com> | 2015-08-03 13:48:15 +0530 |
---|---|---|
committer | Aditya Kapoor <adityakapoor.mait@gmail.com> | 2015-08-03 13:48:15 +0530 |
commit | 74810392254694050ed736ba540918a6bc8f646a (patch) | |
tree | 28ebe80c90fcb20cb28eaf6363948449781bc9e5 | |
parent | 722abe1722a8bcf1798fc7f7f9a8cf4dcfa28e88 (diff) | |
download | rails-74810392254694050ed736ba540918a6bc8f646a.tar.gz rails-74810392254694050ed736ba540918a6bc8f646a.tar.bz2 rails-74810392254694050ed736ba540918a6bc8f646a.zip |
Add missing assertion for test_route_with_colon_first
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 9bbfb74e72..a333290ade 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -335,9 +335,11 @@ class LegacyRouteSetTests < ActiveSupport::TestCase def test_route_with_colon_first rs.draw do - get '/:controller/:action/:id', :action => 'index', :id => nil - get ':url', :controller => 'tiny_url', :action => 'translate' + get '/:controller/:action/:id', action: 'index', id: nil + get ':url', controller: 'content', action: 'translate' end + + assert_equal({controller: 'content', action: 'translate', url: 'example'}, rs.recognize_path('/example')) end def test_route_with_regexp_for_controller |