aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/tmail_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionmailer/test/tmail_test.rb')
-rw-r--r--actionmailer/test/tmail_test.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/actionmailer/test/tmail_test.rb b/actionmailer/test/tmail_test.rb
new file mode 100644
index 0000000000..3930c7d39a
--- /dev/null
+++ b/actionmailer/test/tmail_test.rb
@@ -0,0 +1,17 @@
+$:.unshift(File.dirname(__FILE__) + "/../lib/")
+$:.unshift File.dirname(__FILE__) + "/fixtures/helpers"
+
+require 'test/unit'
+require 'action_mailer'
+
+class TMailMailTest < Test::Unit::TestCase
+ def test_body
+ m = TMail::Mail.new
+ expected = 'something_with_underscores'
+ m.encoding = 'quoted-printable'
+ quoted_body = [expected].pack('*M')
+ m.body = quoted_body
+ assert_equal "something_with_underscores=\n", m.quoted_body
+ assert_equal expected, m.body
+ end
+end