mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 14:56:01 +01:00
shorten long line of test/integration/attachments_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20525 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -197,8 +197,11 @@ class AttachmentsTest < Redmine::IntegrationTest
|
|||||||
|
|
||||||
attachment = Attachment.order('id DESC').first
|
attachment = Attachment.order('id DESC').first
|
||||||
attachment_path = "/attachments/#{attachment.id}.js?attachment_id=1"
|
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
|
assert_difference 'Attachment.count', -1 do
|
||||||
delete attachment_path
|
delete attachment_path
|
||||||
assert_response :success
|
assert_response :success
|
||||||
|
|||||||
Reference in New Issue
Block a user