aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-04-11 04:39:25 -0300
committerJosé Valim <jose.valim@gmail.com>2010-04-11 12:05:43 +0200
commit5b89fd07b28bcd342f874ab08a03efd864db1340 (patch)
tree54a550be597446a59e61eb74b8f67ebf531df438 /actionpack/test/dispatch/routing_test.rb
parent6d29f9789e9a7211ec2890f46caf6cb2e5530bbe (diff)
downloadrails-5b89fd07b28bcd342f874ab08a03efd864db1340.tar.gz
rails-5b89fd07b28bcd342f874ab08a03efd864db1340.tar.bz2
rails-5b89fd07b28bcd342f874ab08a03efd864db1340.zip
Make namespace work with options[:to] [#4351 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'actionpack/test/dispatch/routing_test.rb')
-rw-r--r--actionpack/test/dispatch/routing_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index d38c48bfd4..411a28d8ee 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -140,7 +140,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
namespace :account do
match 'shorthand'
- match 'description', :to => "account#description", :as => "description"
+ match 'description', :to => "description", :as => "description"
resource :subscription, :credit, :credit_card
root :to => "account#index"
@@ -864,7 +864,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
with_test_routes do
assert_equal '/account', account_root_path
get '/account'
- assert_equal 'account#index', @response.body
+ assert_equal 'account/account#index', @response.body
end
end