mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 18:17:27 +02:00
Don't create two thumbnails of different resolutions for a single image (#37597).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@21784 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -2756,7 +2756,7 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
assert_select 'div.thumbnails' do
|
||||
assert_select 'a[href="/attachments/16"]' do
|
||||
assert_select 'img[src="/attachments/thumbnail/16"]'
|
||||
assert_select 'img[src="/attachments/thumbnail/16/200"]'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1886,7 +1886,7 @@ class ApplicationHelperTest < Redmine::HelperTest
|
||||
assert_select_in(
|
||||
thumbnail_tag(a),
|
||||
'a[href=?][title=?] img[src=?][loading="lazy"]',
|
||||
"/attachments/3", "logo.gif", "/attachments/thumbnail/3")
|
||||
"/attachments/3", "logo.gif", "/attachments/thumbnail/3/200")
|
||||
end
|
||||
|
||||
def test_link_to_project
|
||||
|
||||
Reference in New Issue
Block a user