Fixed that previews are broken by r10957 (#12642).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11133 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d9ec03493d
commit
fc19b180c8
|
@ -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/lost_password', :to => 'account#lost_password', :via => [:get, :post], :as => 'lost_password'
|
||||||
match 'account/activate', :to => 'account#activate', :via => :get
|
match 'account/activate', :to => 'account#activate', :via => :get
|
||||||
|
|
||||||
match '/news/preview', :controller => 'previews', :action => 'news', :as => 'preview_news', :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]
|
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]
|
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]
|
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', :to => 'wikis#edit', :via => :post
|
||||||
match 'projects/:id/wiki/destroy', :to => 'wikis#destroy', :via => [:get, :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
|
class RoutingPreviewsTest < ActionController::IntegrationTest
|
||||||
def test_previews
|
def test_previews
|
||||||
["get", "post"].each do |method|
|
["get", "post", "put"].each do |method|
|
||||||
assert_routing(
|
assert_routing(
|
||||||
{ :method => method, :path => "/issues/preview/new/123" },
|
{ :method => method, :path => "/issues/preview/new/123" },
|
||||||
{ :controller => 'previews', :action => 'issue', :project_id => '123' }
|
{ :controller => 'previews', :action => 'issue', :project_id => '123' }
|
||||||
|
|
Loading…
Reference in New Issue