summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-08-28 08:26:07 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-08-28 08:26:07 +0000
commitf07a12659a0b816020a8035a4689f238a9665a8d (patch)
tree884fc93bfbf82e1ddbddc4a065e82a086c9a2f8f /test
parent205fa1bca6cd3876ed1f251ba3051b099f7179a0 (diff)
downloadredmine-f07a12659a0b816020a8035a4689f238a9665a8d.tar.gz
redmine-f07a12659a0b816020a8035a4689f238a9665a8d.zip
ensure issue pdf test has relations (#17570)
git-svn-id: http://svn.redmine.org/redmine/trunk@13357 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/issues_controller_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 9f3542e01..580c4b516 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -25,6 +25,7 @@ class IssuesControllerTest < ActionController::TestCase
:member_roles,
:issues,
:issue_statuses,
+ :issue_relations,
:versions,
:trackers,
:projects_trackers,
@@ -1404,6 +1405,8 @@ class IssuesControllerTest < ActionController::TestCase
end
def test_show_export_to_pdf
+ issue = Issue.find(3)
+ assert issue.relations.select{|r| r.other_issue(issue).visible?}.present?
get :show, :id => 3, :format => 'pdf'
assert_response :success
assert_equal 'application/pdf', @response.content_type