##// END OF EJS Templates
Merged r13556 (#13673)....
Jean-Philippe Lang -
r13246:fa4b6f294b16
parent child
Show More
@@ -97,6 +97,8 module QueriesHelper
97 97 link_to value, issue_path(issue)
98 98 when :subject
99 99 link_to value, issue_path(issue)
100 when :parent
101 value ? (value.visible? ? link_to_issue(value, :subject => false) : "##{value.id}") : ''
100 102 when :description
101 103 issue.description? ? content_tag('div', textilizable(issue, :description), :class => "wiki") : ''
102 104 when :done_ratio
@@ -874,6 +874,17 class IssuesControllerTest < ActionController::TestCase
874 874 assert_equal 'application/pdf', response.content_type
875 875 end
876 876
877 def test_index_with_parent_column
878 Issue.delete_all
879 parent = Issue.generate!
880 child = Issue.generate!(:parent_issue_id => parent.id)
881
882 get :index, :c => %w(parent)
883
884 assert_select 'td.parent', :text => "#{parent.tracker} ##{parent.id}"
885 assert_select 'td.parent a[title=?]', parent.subject
886 end
887
877 888 def test_index_send_html_if_query_is_invalid
878 889 get :index, :f => ['start_date'], :op => {:start_date => '='}
879 890 assert_equal 'text/html', @response.content_type
General Comments 0
You need to be logged in to leave comments. Login now