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:
parent
10a37f4b6b
commit
888287c602
|
@ -713,7 +713,7 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||||
|
|
||||||
# upload the file
|
# upload the file
|
||||||
assert_difference 'Attachment.count' do
|
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
|
assert_response :created
|
||||||
end
|
end
|
||||||
xml = Hash.from_xml(response.body)
|
xml = Hash.from_xml(response.body)
|
||||||
|
@ -757,7 +757,7 @@ class ApiTest::IssuesTest < ActionController::IntegrationTest
|
||||||
|
|
||||||
# upload the file
|
# upload the file
|
||||||
assert_difference 'Attachment.count' do
|
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
|
assert_response :created
|
||||||
end
|
end
|
||||||
xml = Hash.from_xml(response.body)
|
xml = Hash.from_xml(response.body)
|
||||||
|
|
Loading…
Reference in New Issue