]> source.dussan.org Git - redmine.git/commitdiff
Test for r18078 (#19371).
authorGo MAEDA <maeda@farend.jp>
Wed, 24 Apr 2019 02:35:19 +0000 (02:35 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 24 Apr 2019 02:35:19 +0000 (02:35 +0000)
Patch by Yuichi HARADA.

git-svn-id: http://svn.redmine.org/redmine/trunk@18079 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index 195c05d05fc65219bf260a02142a11cabfba8b1a..dd021b19f0f255b674e826f8b82cac06909b6ef5 100644 (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),