Refactor: Move the updating of an Issue to the #update method.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3486 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-02-25 17:01:05 +00:00
parent 19d4ddf2f2
commit c68d853bf4
4 changed files with 29 additions and 10 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ class IssuesApiTest < ActionController::IntegrationTest
def test_update_routing
assert_routing(
{:method => :put, :path => '/issues/1.xml'},
:controller => 'issues', :action => 'edit', :id => '1', :format => 'xml'
:controller => 'issues', :action => 'update', :id => '1', :format => 'xml'
)
end
+1 -1
View File
@@ -69,7 +69,7 @@ class IssuesTest < ActionController::IntegrationTest
log_user('jsmith', 'jsmith')
set_tmp_attachments_directory
post 'issues/1/edit',
put 'issues/1/edit',
:notes => 'Some notes',
:attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain'), 'description' => 'This is an attachment'}}
assert_redirected_to "issues/1"