Sha256: 0adea6cbcc9b76c8e02689ef2d78aa43fdb52a3a35880917c9b00735783ce814
Contents?: true
Size: 714 Bytes
Versions: 19
Compression:
Stored size: 714 Bytes
Contents
require 'test_helper' require 'tmail' require 'tmail/utils' class TestUtils < Test::Unit::TestCase include TMail::TextUtils def _test_new_boundary a = new_boundary() b = new_boundary() c = new_boundary() assert_instance_of String, a assert_instance_of String, b assert_instance_of String, c assert(a != b) assert(b != c) assert(c != a) end def test_unquote mail = TMail::Mail.new assert_equal('Hello', mail.unquote('"Hello"')) end def test_unquote_without_quotes mail = TMail::Mail.new assert_equal('Hello', mail.unquote('Hello')) end def test_unquote_with_nil mail = TMail::Mail.new assert_equal(nil, mail.unquote(nil)) end end
Version data entries
19 entries across 19 versions & 9 rubygems