1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00

Test for r18078 (#19371).

Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18079 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2019-04-24 02:35:19 +00:00
parent 7e407ebeb2
commit 9986248f6d

View File

@ -1430,6 +1430,23 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_select 'td.parent a[title=?]', parent.subject
end
def test_index_with_parent_subject_column
Issue.delete_all
parent = Issue.generate!
child = Issue.generate!(:parent_issue_id => parent.id)
get :index, :params => {
:c => %w(parent.subject)
}
assert_select 'table.issues' do
assert_select 'th.parent-subject', :text => l(:field_parent_issue_subject)
assert_select "tr#issue-#{child.id}" do
assert_select 'td.parent-subject', :text => parent.subject
end
end
end
def test_index_with_last_updated_by_column
get :index, :params => {
:c => %w(subject last_updated_by),