Skip to content

Commit

Permalink
Make ActioMailer quoting test play nice with Ruby 1.9 [#1726 state:re…
Browse files Browse the repository at this point in the history
…solved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
Mike Gunderloy authored and lifo committed Jan 16, 2009
1 parent 7260852 commit 1e02d95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions actionmailer/test/quoting_test.rb
Expand Up @@ -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")
Expand Down

0 comments on commit 1e02d95

Please sign in to comment.