Permalink
Browse files

Make ActioMailer quoting test play nice with Ruby 1.9 [#1726 state:re…

…solved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent 7260852 commit 1e02d95d601b4e9f921d9eac34f5f5a44ebd33a2 @ffmike ffmike committed with lifo Jan 10, 2009
Showing with 4 additions and 2 deletions.
  1. +4 −2 actionmailer/test/quoting_test.rb
@@ -48,8 +48,10 @@ def test_quote_multibyte_chars
result = execute_in_sandbox(<<-CODE)
$:.unshift(File.dirname(__FILE__) + "/../lib/")
- $KCODE = 'u'
- require 'jcode'
+ if RUBY_VERSION < '1.9'
+ $KCODE = 'u'
+ require 'jcode'
+ end
require 'action_mailer/quoting'
include ActionMailer::Quoting
quoted_printable(#{original.inspect}, "UTF-8")

0 comments on commit 1e02d95

Please sign in to comment.