Commit d55bf828 authored by jplang's avatar jplang
Browse files

Fixed that previews are broken by r10957 (#12642).

git-svn-id: https://svn.redmine.org/redmine/trunk@11133 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent ecd48a13
......@@ -24,10 +24,10 @@ RedmineApp::Application.routes.draw do
match 'account/lost_password', :to => 'account#lost_password', :via => [:get, :post], :as => 'lost_password'
match 'account/activate', :to => 'account#activate', :via => :get
match '/news/preview', :controller => 'previews', :action => 'news', :as => 'preview_news', :via => [:get, :post]
match '/issues/preview/new/:project_id', :to => 'previews#issue', :as => 'preview_new_issue', :via => [:get, :post]
match '/issues/preview/edit/:id', :to => 'previews#issue', :as => 'preview_edit_issue', :via => [:get, :post]
match '/issues/preview', :to => 'previews#issue', :as => 'preview_issue', :via => [:get, :post]
match '/news/preview', :controller => 'previews', :action => 'news', :as => 'preview_news', :via => [:get, :post, :put]
match '/issues/preview/new/:project_id', :to => 'previews#issue', :as => 'preview_new_issue', :via => [:get, :post, :put]
match '/issues/preview/edit/:id', :to => 'previews#issue', :as => 'preview_edit_issue', :via => [:get, :post, :put]
match '/issues/preview', :to => 'previews#issue', :as => 'preview_issue', :via => [:get, :post, :put]
match 'projects/:id/wiki', :to => 'wikis#edit', :via => :post
match 'projects/:id/wiki/destroy', :to => 'wikis#destroy', :via => [:get, :post]
......
......@@ -19,7 +19,7 @@ require File.expand_path('../../../test_helper', __FILE__)
class RoutingPreviewsTest < ActionController::IntegrationTest
def test_previews
["get", "post"].each do |method|
["get", "post", "put"].each do |method|
assert_routing(
{ :method => method, :path => "/issues/preview/new/123" },
{ :controller => 'previews', :action => 'issue', :project_id => '123' }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment