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
This commit is contained in:
parent
7785ad191a
commit
bca1d2b93f
@ -33,10 +33,20 @@ class RoutingMessagesTest < ActionController::IntegrationTest
|
|||||||
{ :controller => 'messages', :action => 'edit', :id => '22',
|
{ :controller => 'messages', :action => 'edit', :id => '22',
|
||||||
:board_id => 'lala' }
|
:board_id => 'lala' }
|
||||||
)
|
)
|
||||||
|
assert_routing(
|
||||||
|
{ :method => 'get', :path => "/boards/lala/topics/quote/22" },
|
||||||
|
{ :controller => 'messages', :action => 'quote', :id => '22',
|
||||||
|
:board_id => 'lala' }
|
||||||
|
)
|
||||||
assert_routing(
|
assert_routing(
|
||||||
{ :method => 'post', :path => "/boards/lala/topics/new" },
|
{ :method => 'post', :path => "/boards/lala/topics/new" },
|
||||||
{ :controller => 'messages', :action => 'new', :board_id => 'lala' }
|
{ :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(
|
assert_routing(
|
||||||
{ :method => 'post', :path => "/boards/lala/topics/22/edit" },
|
{ :method => 'post', :path => "/boards/lala/topics/22/edit" },
|
||||||
{ :controller => 'messages', :action => 'edit', :id => '22',
|
{ :controller => 'messages', :action => 'edit', :id => '22',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user