summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-04-24 02:35:19 +0000
committerGo MAEDA <maeda@farend.jp>2019-04-24 02:35:19 +0000
commit9986248f6d92426ba7a429102eb407e40aa93113 (patch)
tree8138b828915d2a9e677a9760ac318593f7e95a75
parent7e407ebeb29860ce36dd6dc5f134e07f734b081c (diff)
downloadredmine-9986248f6d92426ba7a429102eb407e40aa93113.tar.gz
redmine-9986248f6d92426ba7a429102eb407e40aa93113.zip
Test for r18078 (#19371).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18079 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/issues_controller_test.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 195c05d05..dd021b19f 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -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),