@@ -97,6 +97,8 module QueriesHelper | |||||
97 | link_to value, issue_path(issue) |
|
97 | link_to value, issue_path(issue) | |
98 | when :subject |
|
98 | when :subject | |
99 | link_to value, issue_path(issue) |
|
99 | link_to value, issue_path(issue) | |
|
100 | when :parent | |||
|
101 | value ? (value.visible? ? link_to_issue(value, :subject => false) : "##{value.id}") : '' | |||
100 | when :description |
|
102 | when :description | |
101 | issue.description? ? content_tag('div', textilizable(issue, :description), :class => "wiki") : '' |
|
103 | issue.description? ? content_tag('div', textilizable(issue, :description), :class => "wiki") : '' | |
102 | when :done_ratio |
|
104 | when :done_ratio |
@@ -874,6 +874,17 class IssuesControllerTest < ActionController::TestCase | |||||
874 | assert_equal 'application/pdf', response.content_type |
|
874 | assert_equal 'application/pdf', response.content_type | |
875 | end |
|
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 | def test_index_send_html_if_query_is_invalid |
|
888 | def test_index_send_html_if_query_is_invalid | |
878 | get :index, :f => ['start_date'], :op => {:start_date => '='} |
|
889 | get :index, :f => ['start_date'], :op => {:start_date => '='} | |
879 | assert_equal 'text/html', @response.content_type |
|
890 | assert_equal 'text/html', @response.content_type |
General Comments 0
You need to be logged in to leave comments.
Login now