summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-06 17:48:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-06 17:48:19 +0000
commit8201761e7732faa3933899653de5951dcbd6b27c (patch)
treed13d476efca02a4b4bf45a3b06b08ccda1aa6e97 /test/functional
parent43fb3211951ce170df5c7dd1b3f5da871470bdfc (diff)
downloadredmine-8201761e7732faa3933899653de5951dcbd6b27c.tar.gz
redmine-8201761e7732faa3933899653de5951dcbd6b27c.zip
Adds an option for displaying the issue description on the issue list (#3447).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10948 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 4a69019a9..e0d11d7ef 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -418,7 +418,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_equal 'text/csv; header=present', @response.content_type
assert @response.body.starts_with?("#,")
lines = @response.body.chomp.split("\n")
- assert_equal assigns(:query).available_columns.size + 1, lines[0].split(',').size
+ assert_equal assigns(:query).available_inline_columns.size + 1, lines[0].split(',').size
end
def test_index_csv_with_multi_column_field
@@ -825,6 +825,17 @@ class IssuesControllerTest < ActionController::TestCase
assert_equal 'application/pdf', response.content_type
end
+ def test_index_with_description_column
+ get :index, :set_filter => 1, :c => %w(subject description)
+
+ assert_select 'table.issues thead th', 3 # columns: chekbox + id + subject
+ assert_select 'td.description[colspan=3]', :text => 'Unable to print recipes'
+
+ get :index, :set_filter => 1, :c => %w(subject description), :format => 'pdf'
+ assert_response :success
+ assert_equal 'application/pdf', response.content_type
+ end
+
def test_index_send_html_if_query_is_invalid
get :index, :f => ['start_date'], :op => {:start_date => '='}
assert_equal 'text/html', @response.content_type