Remove filename from attachment preview links (#27822).

Patch by Felix Schäfer and Gregor Schmidt.


git-svn-id: http://svn.redmine.org/redmine/trunk@17440 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2018-07-09 14:29:38 +00:00
parent 5a2f924b76
commit 12b37ae754
3 changed files with 22 additions and 16 deletions

View File

@@ -2081,7 +2081,7 @@ class IssuesControllerTest < Redmine::ControllerTest
end
assert_select 'div.thumbnails' do
assert_select 'a[href="/attachments/16/testfile.png"]' do
assert_select 'a[href="/attachments/16"]' do
assert_select 'img[src="/attachments/thumbnail/16"]'
end
end