summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/comments_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/routing/comments_test.rb')
-rw-r--r--test/integration/routing/comments_test.rb13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/integration/routing/comments_test.rb b/test/integration/routing/comments_test.rb
index cd5e259ac..2ead44eaa 100644
--- a/test/integration/routing/comments_test.rb
+++ b/test/integration/routing/comments_test.rb
@@ -17,16 +17,9 @@
require File.expand_path('../../../test_helper', __FILE__)
-class RoutingCommentsTest < ActionDispatch::IntegrationTest
+class RoutingCommentsTest < Redmine::RoutingTest
def test_comments
- assert_routing(
- { :method => 'post', :path => "/news/567/comments" },
- { :controller => 'comments', :action => 'create', :id => '567' }
- )
- assert_routing(
- { :method => 'delete', :path => "/news/567/comments/15" },
- { :controller => 'comments', :action => 'destroy', :id => '567',
- :comment_id => '15' }
- )
+ should_route 'POST /news/567/comments' => 'comments#create', :id => '567'
+ should_route 'DELETE /news/567/comments/15' => 'comments#destroy', :id => '567', :comment_id => '15'
end
end