summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/journals_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-26 08:00:28 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-26 08:00:28 +0000
commitf581ea0aa675d8cf516c0eb086eb2bdb759206c0 (patch)
treee2612581e29d60d13db94ff313d18bc8adfcad61 /test/integration/routing/journals_test.rb
parentbca1d2b93f029aba6b348576ad5010bba5ef4810 (diff)
downloadredmine-f581ea0aa675d8cf516c0eb086eb2bdb759206c0.tar.gz
redmine-f581ea0aa675d8cf516c0eb086eb2bdb759206c0.zip
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
Diffstat (limited to 'test/integration/routing/journals_test.rb')
-rw-r--r--test/integration/routing/journals_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/routing/journals_test.rb b/test/integration/routing/journals_test.rb
index 18a6c9911..50fd5c50b 100644
--- a/test/integration/routing/journals_test.rb
+++ b/test/integration/routing/journals_test.rb
@@ -27,5 +27,15 @@ class RoutingJournalsTest < ActionController::IntegrationTest
{ :method => 'get', :path => "/issues/changes" },
{ :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