summaryrefslogtreecommitdiffstats
path: root/test/functional/timelog_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-05 15:23:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-05 15:23:22 +0000
commitb2ba7db4e1489fca318999214764bac82602fa26 (patch)
tree34049b578d25168a4c571ea31ba0ffa6776a20eb /test/functional/timelog_controller_test.rb
parent4c9fcb34b68ba074e0ab1db92fbae9010cc14c5a (diff)
downloadredmine-b2ba7db4e1489fca318999214764bac82602fa26.tar.gz
redmine-b2ba7db4e1489fca318999214764bac82602fa26.zip
Time entries CSV export should include the tracker and subject of the issue (#18269).
git-svn-id: http://svn.redmine.org/redmine/trunk@13562 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-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 72a45f81b..a0ef98a64 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -716,4 +716,14 @@ class TimelogControllerTest < ActionController::TestCase
assert_equal 'text/csv; header=present', response.content_type
end
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