test: route: move previews test in news test to routing/previews_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8354 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
86ba999486
commit
2fc1a83e6f
@ -27,5 +27,9 @@ class RoutingPreviewsTest < ActionController::IntegrationTest
|
||||
{ :method => 'post', :path => "/issues/preview/123" },
|
||||
{ :controller => 'previews', :action => 'issue', :id => '123' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/news/preview" },
|
||||
{ :controller => 'previews', :action => 'news' }
|
||||
)
|
||||
end
|
||||
end
|
||||
|
@ -260,10 +260,6 @@ class RoutingTest < ActionController::IntegrationTest
|
||||
{ :method => 'get', :path => "/news/567/edit" },
|
||||
{ :controller => 'news', :action => 'edit', :id => '567' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/news/preview" },
|
||||
{ :controller => 'previews', :action => 'news' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => "/projects/567/news" },
|
||||
{ :controller => 'news', :action => 'create', :project_id => '567' }
|
||||
|
Loading…
x
Reference in New Issue
Block a user