summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-01 18:02:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-01 18:02:21 +0000
commit526736dedced5870beab53c1e7845d27471b5563 (patch)
treeb36cdfc5d448c39cd167cddfaa76ef49e757d702
parent2507fd1cd4448c4b0f03973e5961262472172ef7 (diff)
downloadredmine-526736dedced5870beab53c1e7845d27471b5563.tar.gz
redmine-526736dedced5870beab53c1e7845d27471b5563.zip
Removed obsolete routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8017 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--config/routes.rb4
-rw-r--r--test/integration/issues_test.rb12
2 files changed, 6 insertions, 10 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 3ce5efdbe..fa443df20 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -92,10 +92,6 @@ ActionController::Routing::Routes.draw do |map|
reports.connect 'projects/:id/issues/report/:detail', :action => 'issue_report_details'
end
- # Following two routes conflict with the resources because #index allows POST
- map.connect '/issues', :controller => 'issues', :action => 'index', :conditions => { :method => :post }
- map.connect '/issues/create', :controller => 'issues', :action => 'index', :conditions => { :method => :post }
-
map.resources :issues, :member => { :edit => :post }, :collection => {} do |issues|
issues.resources :time_entries, :controller => 'timelog'
issues.resources :relations, :shallow => true, :controller => 'issue_relations', :only => [:index, :show, :create, :destroy]
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index 81aea1896..48ced6bc7 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -89,7 +89,7 @@ class IssuesTest < ActionController::IntegrationTest
assert_equal 0, Issue.find(1).attachments.length
end
- def test_other_formats_links_on_get_index
+ def test_other_formats_links_on_index
get '/projects/ecookbook/issues'
%w(Atom PDF CSV).each do |format|
@@ -99,8 +99,8 @@ class IssuesTest < ActionController::IntegrationTest
end
end
- def test_other_formats_links_on_post_index_without_project_id_in_url
- post '/issues', :project_id => 'ecookbook'
+ def test_other_formats_links_on_index_without_project_id_in_url
+ get '/issues', :project_id => 'ecookbook'
%w(Atom PDF CSV).each do |format|
assert_tag :a, :content => format,
@@ -109,7 +109,7 @@ class IssuesTest < ActionController::IntegrationTest
end
end
- def test_pagination_links_on_get_index
+ def test_pagination_links_on_index
Setting.per_page_options = '2'
get '/projects/ecookbook/issues'
@@ -118,9 +118,9 @@ class IssuesTest < ActionController::IntegrationTest
end
- def test_pagination_links_on_post_index_without_project_id_in_url
+ def test_pagination_links_on_index_without_project_id_in_url
Setting.per_page_options = '2'
- post '/issues', :project_id => 'ecookbook'
+ get '/issues', :project_id => 'ecookbook'
assert_tag :a, :content => '2',
:attributes => { :href => '/projects/ecookbook/issues?page=2' }