Fixes r2226: exporting an issue with attachments to PDF raises an error (#2492).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2262 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
75c10a1cac
commit
31b3ebf071
@ -21,6 +21,8 @@ require 'rfpdf/chinese'
|
|||||||
module Redmine
|
module Redmine
|
||||||
module Export
|
module Export
|
||||||
module PDF
|
module PDF
|
||||||
|
include ActionView::Helpers::NumberHelper
|
||||||
|
|
||||||
class IFPDF < FPDF
|
class IFPDF < FPDF
|
||||||
include GLoc
|
include GLoc
|
||||||
attr_accessor :footer_date
|
attr_accessor :footer_date
|
||||||
|
@ -253,7 +253,7 @@ class IssuesControllerTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_show_export_to_pdf
|
def test_show_export_to_pdf
|
||||||
get :show, :id => 1, :format => 'pdf'
|
get :show, :id => 3, :format => 'pdf'
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_equal 'application/pdf', @response.content_type
|
assert_equal 'application/pdf', @response.content_type
|
||||||
assert @response.body.starts_with?('%PDF')
|
assert @response.body.starts_with?('%PDF')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user