test: route: add journals tests defined at r8162

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8375 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-26 08:00:28 +00:00
parent bca1d2b93f
commit f581ea0aa6
1 changed files with 10 additions and 0 deletions

View File

@ -27,5 +27,15 @@ class RoutingJournalsTest < ActionController::IntegrationTest
{ :method => 'get', :path => "/issues/changes" }, { :method => 'get', :path => "/issues/changes" },
{ :controller => 'journals', :action => 'index' } { :controller => 'journals', :action => 'index' }
) )
assert_routing(
{ :method => 'get', :path => "/journals/diff/1" },
{ :controller => 'journals', :action => 'diff', :id => '1' }
)
["get", "post"].each do |method|
assert_routing(
{ :method => method, :path => "/journals/edit/1" },
{ :controller => 'journals', :action => 'edit', :id => '1' }
)
end
end end
end end