diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-30 15:48:51 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-30 15:48:51 +0000 |
commit | 8fe020049d1cd461320d2e6d30490c6aa35fe9c6 (patch) | |
tree | 7e5748e3a1ff49b9af3954e0e01366608b0ae9d0 /test/integration/lib/redmine | |
parent | 40c771b339001317a5c68fcb6f7a060e3b05c344 (diff) | |
download | redmine-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.rb | 13 |
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 => { |