aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing_test.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2010-03-25 13:25:56 +0000
committerwycats <wycats@gmail.com>2010-03-27 00:49:47 -0700
commit39c35ff04b4478968b8994bc5fad74f5840eb64c (patch)
treeb754987b585e57da1dad8f6774eb8648da96481b /actionpack/test/dispatch/routing_test.rb
parent3a875e618487a06a56f6cf912cf5440f294921cc (diff)
downloadrails-39c35ff04b4478968b8994bc5fad74f5840eb64c.tar.gz
rails-39c35ff04b4478968b8994bc5fad74f5840eb64c.tar.bz2
rails-39c35ff04b4478968b8994bc5fad74f5840eb64c.zip
Fix named routes for member actions of singleton resources [#4266 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
Diffstat (limited to 'actionpack/test/dispatch/routing_test.rb')
-rw-r--r--actionpack/test/dispatch/routing_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index cbe9b5488c..c4e71a8689 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -25,6 +25,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
resource :session do
get :create
+ post :reset
resource :info
end
@@ -247,6 +248,10 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
get '/session/edit'
assert_equal 'sessions#edit', @response.body
assert_equal '/session/edit', edit_session_path
+
+ post '/session/reset'
+ assert_equal 'sessions#reset', @response.body
+ assert_equal '/session/reset', reset_session_path
end
end