route: fix messages quote action method defined at r8162

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8499 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-04 12:38:20 +00:00
parent cda307dfd2
commit 8d9dcfa39b
2 changed files with 2 additions and 2 deletions

View File

@ -28,12 +28,12 @@ ActionController::Routing::Routes.draw do |map|
messages_routes.with_options :conditions => {:method => :get} do |messages_views|
messages_views.connect 'boards/:board_id/topics/new', :action => 'new'
messages_views.connect 'boards/:board_id/topics/:id', :action => 'show'
messages_views.connect 'boards/:board_id/topics/quote/:id', :action => 'quote'
messages_views.connect 'boards/:board_id/topics/:id/edit', :action => 'edit'
end
messages_routes.with_options :conditions => {:method => :post} do |messages_actions|
messages_actions.connect 'boards/:board_id/topics/new', :action => 'new'
messages_actions.connect 'boards/:board_id/topics/preview', :action => 'preview'
messages_actions.connect 'boards/:board_id/topics/quote/:id', :action => 'quote'
messages_actions.connect 'boards/:board_id/topics/:id/replies', :action => 'reply'
messages_actions.connect 'boards/:board_id/topics/:id/edit', :action => 'edit'
messages_actions.connect 'boards/:board_id/topics/:id/destroy', :action => 'destroy'

View File

@ -34,7 +34,7 @@ class RoutingMessagesTest < ActionController::IntegrationTest
:board_id => 'lala' }
)
assert_routing(
{ :method => 'get', :path => "/boards/lala/topics/quote/22" },
{ :method => 'post', :path => "/boards/lala/topics/quote/22" },
{ :controller => 'messages', :action => 'quote', :id => '22',
:board_id => 'lala' }
)