]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of AttachmentFieldFormatTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 30 Nov 2020 15:48:51 +0000 (15:48 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 30 Nov 2020 15:48:51 +0000 (15:48 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20524 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/lib/redmine/field_format/attachment_format_test.rb

index 80f6c99b1984125431e55dc3f65525154119b90f..44a1c248acc3b8cd89465a64f2d9123e4fb1ff37 100644 (file)
@@ -134,9 +134,16 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
     end
 
     assert_nil attachment.container_id
-    assert_select 'input[name=?][value=?][type=hidden]', "issue[custom_field_values][#{@field.id}][p0][token]", attachment.token
-    assert_select 'input[name=?][value=?]', "issue[custom_field_values][#{@field.id}][p0][filename]", 'testfile.txt'
-
+    assert_select(
+      'input[name=?][value=?][type=hidden]',
+      "issue[custom_field_values][#{@field.id}][p0][token]",
+      attachment.token
+    )
+    assert_select(
+      'input[name=?][value=?]',
+      "issue[custom_field_values][#{@field.id}][p0][filename]",
+      'testfile.txt'
+    )
     issue = new_record(Issue) do
       assert_no_difference 'Attachment.count' do
         post '/projects/ecookbook/issues', :params => {