##// END OF EJS Templates
test: route: move previews test in news test to routing/previews_test.rb...
Toshi MARUYAMA -
r8234:2fc1a83e6f25
parent child
Show More
@@ -27,5 +27,9 class RoutingPreviewsTest < ActionController::IntegrationTest
27 27 { :method => 'post', :path => "/issues/preview/123" },
28 28 { :controller => 'previews', :action => 'issue', :id => '123' }
29 29 )
30 assert_routing(
31 { :method => 'get', :path => "/news/preview" },
32 { :controller => 'previews', :action => 'news' }
33 )
30 34 end
31 35 end
@@ -261,10 +261,6 class RoutingTest < ActionController::IntegrationTest
261 261 { :controller => 'news', :action => 'edit', :id => '567' }
262 262 )
263 263 assert_routing(
264 { :method => 'get', :path => "/news/preview" },
265 { :controller => 'previews', :action => 'news' }
266 )
267 assert_routing(
268 264 { :method => 'post', :path => "/projects/567/news" },
269 265 { :controller => 'news', :action => 'create', :project_id => '567' }
270 266 )
General Comments 0
You need to be logged in to leave comments. Login now