From f3789eed52979878bee574cdd97079f5f597b697 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 2 Dec 2020 13:31:47 +0000 Subject: [PATCH] fix source indent of AttachmentFieldFormatTest git-svn-id: http://svn.redmine.org/redmine/trunk@20542 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../field_format/attachment_format_test.rb | 30 +++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/test/integration/lib/redmine/field_format/attachment_format_test.rb b/test/integration/lib/redmine/field_format/attachment_format_test.rb index 44a1c248a..8302aead6 100644 --- a/test/integration/lib/redmine/field_format/attachment_format_test.rb +++ b/test/integration/lib/redmine/field_format/attachment_format_test.rb @@ -54,7 +54,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest def test_create_with_attachment issue = new_record(Issue) do assert_difference 'Attachment.count' do - post '/projects/ecookbook/issues', :params => { + post( + '/projects/ecookbook/issues', + :params => { :issue => { :subject => "Subject", :custom_field_values => { @@ -65,6 +67,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest } } } + ) assert_response 302 end end @@ -94,7 +97,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest def test_create_without_attachment issue = new_record(Issue) do assert_no_difference 'Attachment.count' do - post '/projects/ecookbook/issues', :params => { + post( + '/projects/ecookbook/issues', + :params => { :issue => { :subject => "Subject", :custom_field_values => { @@ -102,6 +107,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest } } } + ) assert_response 302 end end @@ -120,7 +126,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest def test_failure_on_create_should_preserve_attachment attachment = new_record(Attachment) do assert_no_difference 'Issue.count' do - post '/projects/ecookbook/issues', :params => { + post( + '/projects/ecookbook/issues', + :params => { :issue => { :subject => "", :custom_field_values => { @@ -128,6 +136,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest } } } + ) assert_response :success assert_select_error /Subject cannot be blank/ end @@ -146,7 +155,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest ) issue = new_record(Issue) do assert_no_difference 'Attachment.count' do - post '/projects/ecookbook/issues', :params => { + post( + '/projects/ecookbook/issues', + :params => { :issue => { :subject => "Subject", :custom_field_values => { @@ -154,6 +165,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest } } } + ) assert_response 302 end end @@ -170,7 +182,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest attachment = new_record(Attachment) do assert_difference 'Issue.count' do - post '/projects/ecookbook/issues', :params => { + post( + '/projects/ecookbook/issues', + :params => { :issue => { :subject => "Blank", :custom_field_values => { @@ -178,6 +192,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest } } } + ) assert_response 302 end end @@ -189,7 +204,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest attachment = new_record(Attachment) do assert_no_difference 'Issue.count' do - post '/projects/ecookbook/issues', :params => { + post( + '/projects/ecookbook/issues', + :params => { :issue => { :subject => "Blank", :custom_field_values => { @@ -197,6 +214,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest } } } + ) assert_response :success end end -- 2.39.5