mirror of
https://github.com/redmine/redmine.git
synced 2025-11-03 03:46:19 +01:00
Attachment name is added in the generated link.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11193 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -57,7 +57,7 @@ class AttachmentsTest < ActionController::IntegrationTest
|
|||||||
}
|
}
|
||||||
assert_response :success
|
assert_response :success
|
||||||
|
|
||||||
attachment_path = response.body.match(%r{<img src="(/attachments/download/\d+)"})[1]
|
attachment_path = response.body.match(%r{<img src="(/attachments/download/\d+/myupload.jpg)"})[1]
|
||||||
assert_not_nil token, "No attachment path found in response:\n#{response.body}"
|
assert_not_nil token, "No attachment path found in response:\n#{response.body}"
|
||||||
|
|
||||||
get attachment_path
|
get attachment_path
|
||||||
|
|||||||
Reference in New Issue
Block a user