diff --git a/test/integration/routing/previews_test.rb b/test/integration/routing/previews_test.rb index 6707132..58bcc4a 100644 --- a/test/integration/routing/previews_test.rb +++ b/test/integration/routing/previews_test.rb @@ -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 diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index 2f51bf7..b49826e 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -261,10 +261,6 @@ class RoutingTest < ActionController::IntegrationTest { :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' } )