shorten long line of AttachmentFieldFormatTest

git-svn-id: http://svn.redmine.org/redmine/trunk@20524 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2020-11-30 15:48:51 +00:00
parent 40c771b339
commit 8fe020049d

View File

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