@@ -713,7 +713,7 class ApiTest::IssuesTest < ActionController::IntegrationTest | |||
|
713 | 713 | |
|
714 | 714 | # upload the file |
|
715 | 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 | 717 | assert_response :created |
|
718 | 718 | end |
|
719 | 719 | xml = Hash.from_xml(response.body) |
@@ -757,7 +757,7 class ApiTest::IssuesTest < ActionController::IntegrationTest | |||
|
757 | 757 | |
|
758 | 758 | # upload the file |
|
759 | 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 | 761 | assert_response :created |
|
762 | 762 | end |
|
763 | 763 | xml = Hash.from_xml(response.body) |
General Comments 0
You need to be logged in to leave comments.
Login now