Project

General



Profile

« Previous | Next » 

Revision 13282

Added by Toshi MARUYAMA about 11 years ago

test both of CP932 and SJIS at PdfTest#test_attach

View differences:

sandbox/rails-4.1/test/unit/lib/redmine/export/pdf_test.rb
67 67
  end
68 68

  
69 69
  def test_attach
70
   ["CP932", "SJIS"].each do |encoding|
70 71
    set_fixtures_attachments_directory
71 72

  
72 73
    str2 = "\x83e\x83X\x83g".force_encoding("ASCII-8BIT")
73
    encoding = ( RUBY_PLATFORM == 'java' ? "SJIS" : "CP932" )
74 74

  
75 75
    a1 = Attachment.find(17)
76 76
    a2 = Attachment.find(19)
......
100 100
    assert_equal nil, aa2
101 101

  
102 102
    set_tmp_attachments_directory
103
   end
103 104
  end
104 105
end

Also available in: Unified diff