Changeset 8666
- Timestamp:
- 01/19/08 03:03:38 (8 months ago)
- Files:
-
- trunk/actionmailer/test/quoting_test.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionmailer/test/quoting_test.rb
r8565 r8666 1 # encoding: utf-8 1 2 require 'abstract_unit' 2 3 require 'tmail' … … 39 40 a ="=?ISO-8859-1?Q?Brosch=FCre_Rand?=" 40 41 b = TMail::Unquoter.unquote_and_convert_to(a, 'iso-8859-1') 41 assert_equal "Brosch\374re Rand", b 42 expected = "Brosch\374re Rand" 43 expected.force_encoding 'iso-8859-1' if expected.respond_to?(:force_encoding) 44 assert_equal expected, b 42 45 end 43 46 44 47 def test_quote_multibyte_chars 45 48 original = "\303\246 \303\270 and \303\245" 49 original.force_encoding nil if original.respond_to?(:force_encoding) 46 50 47 51 result = execute_in_sandbox(<<-CODE)