diff options
-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 => { |