mirror of
https://github.com/redmine/redmine.git
synced 2026-03-05 03:51:38 +01:00
Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9005 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -713,7 +713,7 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||
|
||||
# upload the file
|
||||
assert_difference 'Attachment.count' do
|
||||
post '/uploads.xml', 'test_create_with_upload', {'Content-Type' => 'application/octet-stream'}.merge(credentials('jsmith'))
|
||||
post '/uploads.xml', 'test_create_with_upload', {"CONTENT_TYPE" => 'application/octet-stream'}.merge(credentials('jsmith'))
|
||||
assert_response :created
|
||||
end
|
||||
xml = Hash.from_xml(response.body)
|
||||
@@ -757,7 +757,7 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||
|
||||
# upload the file
|
||||
assert_difference 'Attachment.count' do
|
||||
post '/uploads.xml', 'test_upload_with_upload', {'Content-Type' => 'application/octet-stream'}.merge(credentials('jsmith'))
|
||||
post '/uploads.xml', 'test_upload_with_upload', {"CONTENT_TYPE" => 'application/octet-stream'}.merge(credentials('jsmith'))
|
||||
assert_response :created
|
||||
end
|
||||
xml = Hash.from_xml(response.body)
|
||||
|
||||
Reference in New Issue
Block a user