aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-02-25 23:38:48 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-02-25 23:38:48 +0000
commit4bd80f110d41a02ddc76212a92b5367541e6bce7 (patch)
tree63c5428eb51ef09777ebd74ac8628664673a6914 /actionmailer/test
parent5e99422d61cd690f24b10f540dafe218092283a3 (diff)
downloadrails-4bd80f110d41a02ddc76212a92b5367541e6bce7.tar.gz
rails-4bd80f110d41a02ddc76212a92b5367541e6bce7.tar.bz2
rails-4bd80f110d41a02ddc76212a92b5367541e6bce7.zip
Make TMail::Mail#has_attachments? use logic from #attachment? (closes #3815) [devslashnull@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/test')
-rwxr-xr-xactionmailer/test/mail_service_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionmailer/test/mail_service_test.rb b/actionmailer/test/mail_service_test.rb
index 838c49b7c3..519ca85290 100755
--- a/actionmailer/test/mail_service_test.rb
+++ b/actionmailer/test/mail_service_test.rb
@@ -590,6 +590,7 @@ EOF
def test_attachment_with_text_type
fixture = File.read(File.dirname(__FILE__) + "/fixtures/raw_email13")
mail = TMail::Mail.parse(fixture)
+ assert mail.has_attachments?
assert_equal 1, mail.attachments.length
assert_equal "hello.rb", mail.attachments.first.original_filename
end