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

test/integration/attachments_test.rb

index 8b819cbbd8f1ec6af4884e243d76c04570e1bdf2..1f3ffbba3a309133bde76cc5b535e9f0e5223d78 100644 (file)
@@ -197,8 +197,11 @@ class AttachmentsTest < Redmine::IntegrationTest
 
     attachment = Attachment.order('id DESC').first
     attachment_path = "/attachments/#{attachment.id}.js?attachment_id=1"
-    assert_include "href: '#{attachment_path}'", response.body, "Path to attachment: #{attachment_path} not found in response:\n#{response.body}"
-
+    assert_include(
+      "href: '#{attachment_path}'",
+      response.body,
+      "Path to attachment: #{attachment_path} not found in response:\n#{response.body}"
+    )
     assert_difference 'Attachment.count', -1 do
       delete attachment_path
       assert_response :success