@@ -713,7 +713,7 class ApiTest::IssuesTest < ActionController::IntegrationTest | |||||
713 |
|
713 | |||
714 | # upload the file |
|
714 | # upload the file | |
715 | assert_difference 'Attachment.count' do |
|
715 | assert_difference 'Attachment.count' do | |
716 |
post '/uploads.xml', 'test_create_with_upload', { |
|
716 | post '/uploads.xml', 'test_create_with_upload', {"CONTENT_TYPE" => 'application/octet-stream'}.merge(credentials('jsmith')) | |
717 | assert_response :created |
|
717 | assert_response :created | |
718 | end |
|
718 | end | |
719 | xml = Hash.from_xml(response.body) |
|
719 | xml = Hash.from_xml(response.body) | |
@@ -757,7 +757,7 class ApiTest::IssuesTest < ActionController::IntegrationTest | |||||
757 |
|
757 | |||
758 | # upload the file |
|
758 | # upload the file | |
759 | assert_difference 'Attachment.count' do |
|
759 | assert_difference 'Attachment.count' do | |
760 |
post '/uploads.xml', 'test_upload_with_upload', { |
|
760 | post '/uploads.xml', 'test_upload_with_upload', {"CONTENT_TYPE" => 'application/octet-stream'}.merge(credentials('jsmith')) | |
761 | assert_response :created |
|
761 | assert_response :created | |
762 | end |
|
762 | end | |
763 | xml = Hash.from_xml(response.body) |
|
763 | xml = Hash.from_xml(response.body) |
General Comments 0
You need to be logged in to leave comments.
Login now