summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-08-26 16:36:59 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-08-26 16:36:59 +0000
commit56e984b5e740398d0659432ecdee770de1943e84 (patch)
tree32025556b99832154c2f1680f9ad198446e95491 /test/integration
parentdaa4272c0e7f657a0070424224cabccbbeca6197 (diff)
downloadredmine-56e984b5e740398d0659432ecdee770de1943e84.tar.gz
redmine-56e984b5e740398d0659432ecdee770de1943e84.zip
Refactor: convert many of the custom Issue routes to REST resources.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4041 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/issues_test.rb2
-rw-r--r--test/integration/routing_test.rb8
2 files changed, 5 insertions, 5 deletions
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index 0c1a36d34..c8a151cfd 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -69,7 +69,7 @@ class IssuesTest < ActionController::IntegrationTest
log_user('jsmith', 'jsmith')
set_tmp_attachments_directory
- put 'issues/1/edit',
+ put 'issues/1',
:notes => 'Some notes',
:attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain'), 'description' => 'This is an attachment'}}
assert_redirected_to "issues/1"
diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb
index 119b506ae..9b5f39399 100644
--- a/test/integration/routing_test.rb
+++ b/test/integration/routing_test.rb
@@ -91,14 +91,14 @@ class RoutingTest < ActionController::IntegrationTest
should_route :post, "/issues/1/quoted", :controller => 'journals', :action => 'new', :id => '1'
should_route :get, "/issues/calendar", :controller => 'calendars', :action => 'show'
- should_route :post, "/issues/calendar", :controller => 'calendars', :action => 'show'
+ should_route :put, "/issues/calendar", :controller => 'calendars', :action => 'update'
should_route :get, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'show', :project_id => 'project-name'
- should_route :post, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'show', :project_id => 'project-name'
+ should_route :put, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'update', :project_id => 'project-name'
should_route :get, "/issues/gantt", :controller => 'gantts', :action => 'show'
- should_route :post, "/issues/gantt", :controller => 'gantts', :action => 'show'
+ should_route :put, "/issues/gantt", :controller => 'gantts', :action => 'update'
should_route :get, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'show', :project_id => 'project-name'
- should_route :post, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'show', :project_id => 'project-name'
+ should_route :put, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'update', :project_id => 'project-name'
should_route :get, "/issues/auto_complete", :controller => 'auto_completes', :action => 'issues'