##// END OF EJS Templates
test: route: simplify previews tests...
Toshi MARUYAMA -
r8250:431e98c999d7
parent child
Show More
@@ -19,14 +19,12 require File.expand_path('../../../test_helper', __FILE__)
19
19
20 class RoutingPreviewsTest < ActionController::IntegrationTest
20 class RoutingPreviewsTest < ActionController::IntegrationTest
21 def test_previews
21 def test_previews
22 assert_routing(
22 ["get", "post"].each do |method|
23 { :method => 'get', :path => "/issues/preview/123" },
23 assert_routing(
24 { :controller => 'previews', :action => 'issue', :id => '123' }
24 { :method => method, :path => "/issues/preview/123" },
25 )
25 { :controller => 'previews', :action => 'issue', :id => '123' }
26 assert_routing(
26 )
27 { :method => 'post', :path => "/issues/preview/123" },
27 end
28 { :controller => 'previews', :action => 'issue', :id => '123' }
29 )
30 assert_routing(
28 assert_routing(
31 { :method => 'get', :path => "/news/preview" },
29 { :method => 'get', :path => "/news/preview" },
32 { :controller => 'previews', :action => 'news' }
30 { :controller => 'previews', :action => 'news' }
General Comments 0
You need to be logged in to leave comments. Login now