Makes Attachments column available on the issue list (#25515).

git-svn-id: http://svn.redmine.org/redmine/trunk@16473 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2017-04-04 17:07:13 +00:00
parent 0a40b19c99
commit 5c7aaa4d1e
5 changed files with 47 additions and 15 deletions

View File

@@ -1023,6 +1023,26 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_equal ["John Smith", "John Smith", ""], css_select('td.last_updated_by').map(&:text)
end
def test_index_with_attachments_column
get :index, :c => %w(subject attachments), :set_filter => '1', :sort => 'id'
assert_response :success
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'
end
end
end
def test_index_with_attachments_column_as_csv
get :index, :c => %w(subject attachments), :set_filter => '1', :sort => 'id', :format => 'csv'
assert_response :success
assert_include "\"source.rb\npicture.jpg\"", response.body
end
def test_index_with_estimated_hours_total
Issue.delete_all
Issue.generate!(:estimated_hours => 5.5)