aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib/mail_handler/mail_handler_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-12-06 13:46:05 +0000
committerLouise Crow <louise.crow@gmail.com>2012-12-06 14:15:59 +0000
commitf026dbc4c23ca25dd31dc6d3d132d6f1668728de (patch)
tree9709a9c280b2464ae6bc7882f92481f629296a34 /spec/lib/mail_handler/mail_handler_spec.rb
parent43a21cd57f6aafb94698b5324aaac0f3c106319f (diff)
Convert example URL to spec.
Diffstat (limited to 'spec/lib/mail_handler/mail_handler_spec.rb')
-rw-r--r--spec/lib/mail_handler/mail_handler_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/mail_handler/mail_handler_spec.rb b/spec/lib/mail_handler/mail_handler_spec.rb
index 99ab8096f..1e10a7871 100644
--- a/spec/lib/mail_handler/mail_handler_spec.rb
+++ b/spec/lib/mail_handler/mail_handler_spec.rb
@@ -272,3 +272,12 @@ describe "when getting the attachment text" do
end
end
+
+describe 'when getting attachment attributes' do
+
+ it 'should handle a mail which causes Tmail to generate a blank header value' do
+ mail = get_fixture_mail('many-attachments-date-header.email')
+ attributes = MailHandler.get_attachment_attributes(mail)
+ end
+
+end