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:
parent
1cb1bc7c96
commit
17e8664b61
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue