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:
Jean-Philippe Lang 2013-01-14 23:07:26 +00:00
parent 1cb1bc7c96
commit 17e8664b61
1 changed files with 1 additions and 1 deletions

View File

@ -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