diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-07-19 14:06:17 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-07-19 14:06:17 +0000 |
commit | c28724bb6836f3b95777d701b67fb894cb2a9302 (patch) | |
tree | c65ff4ebdd7103cd411db156ce99d9174fc0816a /test/integration/api_test | |
parent | 66bdcd08d96fa803fa08c427b1269df42b0c9182 (diff) | |
download | redmine-c28724bb6836f3b95777d701b67fb894cb2a9302.tar.gz redmine-c28724bb6836f3b95777d701b67fb894cb2a9302.zip |
fix source indent of test/integration/api_test/attachments_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19919 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test')
-rw-r--r-- | test/integration/api_test/attachments_test.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/integration/api_test/attachments_test.rb b/test/integration/api_test/attachments_test.rb index 4d83195c4..a9775745c 100644 --- a/test/integration/api_test/attachments_test.rb +++ b/test/integration/api_test/attachments_test.rb @@ -100,10 +100,11 @@ class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base end test "PATCH /attachments/:id.json should update the attachment" do - patch '/attachments/7.json', + patch( + '/attachments/7.json', :params => {:attachment => {:filename => 'renamed.zip', :description => 'updated'}}, :headers => credentials('jsmith') - + ) assert_response :no_content assert_nil response.media_type attachment = Attachment.find(7) @@ -112,10 +113,11 @@ class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base end test "PATCH /attachments/:id.json with failure should return the errors" do - patch '/attachments/7.json', + patch( + '/attachments/7.json', :params => {:attachment => {:filename => '', :description => 'updated'}}, :headers => credentials('jsmith') - + ) assert_response 422 assert_equal 'application/json', response.media_type json = ActiveSupport::JSON.decode(response.body) |