mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-21 23:02:57 +00:00
ensure issue pdf test has relations (#17570)
git-svn-id: http://svn.redmine.org/redmine/trunk@13357 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
205fa1bca6
commit
f07a12659a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user