From 39c35ff04b4478968b8994bc5fad74f5840eb64c Mon Sep 17 00:00:00 2001 From: Andrew White Date: Thu, 25 Mar 2010 13:25:56 +0000 Subject: Fix named routes for member actions of singleton resources [#4266 state:resolved] Signed-off-by: wycats --- actionpack/test/dispatch/routing_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/test/dispatch/routing_test.rb') 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 -- cgit v1.2.3