- 'test/integration/api_test/memberships_test.rb'
- 'test/integration/api_test/projects_test.rb'
- 'test/integration/api_test/wiki_pages_test.rb'
- - 'test/test_helper.rb'
- 'test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb'
- 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
def upload(format, content, credentials)
set_tmp_attachments_directory
assert_difference 'Attachment.count' do
- post "/uploads.#{format}",
+ post(
+ "/uploads.#{format}",
:params => content,
:headers => {"CONTENT_TYPE" => 'application/octet-stream'}.merge(credentials)
+ )
assert_response :created
end
data = response_data