aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorAditya Kapoor <adityakapoor.mait@gmail.com>2015-08-03 13:48:15 +0530
committerAditya Kapoor <adityakapoor.mait@gmail.com>2015-08-03 13:48:15 +0530
commit74810392254694050ed736ba540918a6bc8f646a (patch)
tree28ebe80c90fcb20cb28eaf6363948449781bc9e5 /actionpack/test/controller
parent722abe1722a8bcf1798fc7f7f9a8cf4dcfa28e88 (diff)
downloadrails-74810392254694050ed736ba540918a6bc8f646a.tar.gz
rails-74810392254694050ed736ba540918a6bc8f646a.tar.bz2
rails-74810392254694050ed736ba540918a6bc8f646a.zip
Add missing assertion for test_route_with_colon_first
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/routing_test.rb6
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