]> source.dussan.org Git - redmine.git/commitdiff
test: route: add journals tests defined at r8162
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 26 Dec 2011 08:00:28 +0000 (08:00 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 26 Dec 2011 08:00:28 +0000 (08:00 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8375 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/routing/journals_test.rb

index 18a6c991156d838007c884c3b35ee663a5476b39..50fd5c50b381d6c5405de5347e023abe5561ae26 100644 (file)
@@ -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