diff options
author | Brian Rose <brian@heimidal.net> | 2010-07-16 15:26:21 -0600 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-21 22:07:40 +0200 |
commit | 622092d33e8d326217ab1ed6138e2c572c95b8ba (patch) | |
tree | 5054692034aa1c2b39e3633c5f8b223d591af1b0 /actionpack/test/controller | |
parent | d16c5cc99b4ac5a5517b643aabb3b31bf0f0f1b6 (diff) | |
download | rails-622092d33e8d326217ab1ed6138e2c572c95b8ba.tar.gz rails-622092d33e8d326217ab1ed6138e2c572c95b8ba.tar.bz2 rails-622092d33e8d326217ab1ed6138e2c572c95b8ba.zip |
Fixed a globbed route issue where slashes were being escaped, causing assert_routing to fail. [#5135 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/test_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb index f9fc7a0976..950ad9266f 100644 --- a/actionpack/test/controller/test_test.rb +++ b/actionpack/test/controller/test_test.rb @@ -461,6 +461,13 @@ XML def test_assert_routing_in_module assert_routing 'admin/user', :controller => 'admin/user', :action => 'index' end + + def test_assert_routing_with_glob + with_routing do |set| + set.draw { |map| match('*path' => "pages#show") } + assert_routing('/company/about', { :controller => 'pages', :action => 'show', :path => 'company/about' }) + end + end def test_params_passing get :test_params, :page => {:name => "Page name", :month => '4', :year => '2004', :day => '6'} |