##// END OF EJS Templates
Fixes r2226: exporting an issue with attachments to PDF raises an error (#2492)....
Jean-Philippe Lang -
r2260:31b3ebf071bc
parent child
Show More
@@ -21,6 +21,8 require 'rfpdf/chinese'
21 21 module Redmine
22 22 module Export
23 23 module PDF
24 include ActionView::Helpers::NumberHelper
25
24 26 class IFPDF < FPDF
25 27 include GLoc
26 28 attr_accessor :footer_date
@@ -253,7 +253,7 class IssuesControllerTest < Test::Unit::TestCase
253 253 end
254 254
255 255 def test_show_export_to_pdf
256 get :show, :id => 1, :format => 'pdf'
256 get :show, :id => 3, :format => 'pdf'
257 257 assert_response :success
258 258 assert_equal 'application/pdf', @response.content_type
259 259 assert @response.body.starts_with?('%PDF')
General Comments 0
You need to be logged in to leave comments. Login now