mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 22:36:02 +01:00
Add download buttons in Files columns of the issues list (#32240).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@19500 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1784,8 +1784,14 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
assert_select 'td.attachments'
|
||||
assert_select 'tr#issue-2' do
|
||||
assert_select 'td.attachments' do
|
||||
assert_select 'a', :text => 'source.rb'
|
||||
assert_select 'a', :text => 'picture.jpg'
|
||||
assert_select 'span:nth-of-type(1)' do
|
||||
assert_select 'a[href=?]', '/attachments/4', :text => 'source.rb'
|
||||
assert_select 'a[href=?].icon-download', '/attachments/download/4/source.rb'
|
||||
end
|
||||
assert_select 'span:nth-of-type(2)' do
|
||||
assert_select 'a[href=?]', '/attachments/10', :text => 'picture.jpg'
|
||||
assert_select 'a[href=?].icon-download', '/attachments/download/10/picture.jpg'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user