@@ -21,6 +21,8 require 'rfpdf/chinese' | |||||
21 | module Redmine |
|
21 | module Redmine | |
22 | module Export |
|
22 | module Export | |
23 | module PDF |
|
23 | module PDF | |
|
24 | include ActionView::Helpers::NumberHelper | |||
|
25 | ||||
24 | class IFPDF < FPDF |
|
26 | class IFPDF < FPDF | |
25 | include GLoc |
|
27 | include GLoc | |
26 | attr_accessor :footer_date |
|
28 | attr_accessor :footer_date |
@@ -253,7 +253,7 class IssuesControllerTest < Test::Unit::TestCase | |||||
253 | end |
|
253 | end | |
254 |
|
254 | |||
255 | def test_show_export_to_pdf |
|
255 | def test_show_export_to_pdf | |
256 |
get :show, :id => |
|
256 | get :show, :id => 3, :format => 'pdf' | |
257 | assert_response :success |
|
257 | assert_response :success | |
258 | assert_equal 'application/pdf', @response.content_type |
|
258 | assert_equal 'application/pdf', @response.content_type | |
259 | assert @response.body.starts_with?('%PDF') |
|
259 | assert @response.body.starts_with?('%PDF') |
General Comments 0
You need to be logged in to leave comments.
Login now