diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-26 07:59:43 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-26 07:59:43 +0000 |
commit | bca1d2b93f029aba6b348576ad5010bba5ef4810 (patch) | |
tree | 8f6f7d0351140f9e97159effc45f97a00de80cfd /test | |
parent | 7785ad191aa45172386a84dc566a9eac4287ab46 (diff) | |
download | redmine-bca1d2b93f029aba6b348576ad5010bba5ef4810.tar.gz redmine-bca1d2b93f029aba6b348576ad5010bba5ef4810.zip |
test: route: add messages tests defined at r8162
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8374 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/routing/messages_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/routing/messages_test.rb b/test/integration/routing/messages_test.rb index 87eb43a33..f9153f034 100644 --- a/test/integration/routing/messages_test.rb +++ b/test/integration/routing/messages_test.rb @@ -34,10 +34,20 @@ class RoutingMessagesTest < ActionController::IntegrationTest :board_id => 'lala' } ) assert_routing( + { :method => 'get', :path => "/boards/lala/topics/quote/22" }, + { :controller => 'messages', :action => 'quote', :id => '22', + :board_id => 'lala' } + ) + assert_routing( { :method => 'post', :path => "/boards/lala/topics/new" }, { :controller => 'messages', :action => 'new', :board_id => 'lala' } ) assert_routing( + { :method => 'post', :path => "/boards/lala/topics/preview" }, + { :controller => 'messages', :action => 'preview', + :board_id => 'lala' } + ) + assert_routing( { :method => 'post', :path => "/boards/lala/topics/22/edit" }, { :controller => 'messages', :action => 'edit', :id => '22', :board_id => 'lala' } |