summaryrefslogtreecommitdiffstats
path: root/test/integration/lib/redmine
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-30 15:48:51 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-30 15:48:51 +0000
commit8fe020049d1cd461320d2e6d30490c6aa35fe9c6 (patch)
tree7e5748e3a1ff49b9af3954e0e01366608b0ae9d0 /test/integration/lib/redmine
parent40c771b339001317a5c68fcb6f7a060e3b05c344 (diff)
downloadredmine-8fe020049d1cd461320d2e6d30490c6aa35fe9c6.tar.gz
redmine-8fe020049d1cd461320d2e6d30490c6aa35fe9c6.zip
shorten long line of AttachmentFieldFormatTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20524 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/lib/redmine')
-rw-r--r--test/integration/lib/redmine/field_format/attachment_format_test.rb13
1 files changed, 10 insertions, 3 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 80f6c99b1..44a1c248a 100644
--- a/test/integration/lib/redmine/field_format/attachment_format_test.rb
+++ b/test/integration/lib/redmine/field_format/attachment_format_test.rb
@@ -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 => {