summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-22 10:35:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-22 10:35:38 +0000
commit2d612f32b7c06073ad3b76d9038a26390a98c7dd (patch)
tree2d1b4f8d90007626c197c3f8839040edb82946db /test
parent89e386ea0cd73ce043ab82e092551252f42b08c2 (diff)
downloadredmine-2d612f32b7c06073ad3b76d9038a26390a98c7dd.tar.gz
redmine-2d612f32b7c06073ad3b76d9038a26390a98c7dd.zip
Merged r13562 (#18269).
git-svn-id: http://svn.redmine.org/redmine/branches/2.6-stable@13630 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/timelog_controller_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index cc76cba21..67a141adf 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -714,4 +714,14 @@ class TimelogControllerTest < ActionController::TestCase
assert_response :success
assert_equal 'text/csv; header=present', response.content_type
end
+
+ def test_index_csv_should_fill_issue_column_with_tracker_id_and_subject
+ issue = Issue.find(1)
+ entry = TimeEntry.generate!(:issue => issue, :comments => "Issue column content test")
+
+ get :index, :format => 'csv'
+ line = response.body.split("\n").detect {|l| l.include?(entry.comments)}
+ assert_not_nil line
+ assert_include "#{issue.tracker} #1: #{issue.subject}", line
+ end
end