diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-12-06 10:43:07 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-12-06 14:15:58 +0000 |
commit | 1d4ef88e60bcecc5c413cf3b6e6cb76f4bb6eaa1 (patch) | |
tree | 07ec85e8469f5ed2f1ce6ce3ca241ed0be729f5e /spec/lib/mail_handler/mail_handler_spec.rb | |
parent | 12b9d57ea9bbe69e5e195a90085b66056f4116a4 (diff) |
Rename _get_attachment_text_internal_one_file to get_attachment_text_one_file as it is now an externally-accessed method of the mail handler module.
Diffstat (limited to 'spec/lib/mail_handler/mail_handler_spec.rb')
-rw-r--r-- | spec/lib/mail_handler/mail_handler_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/lib/mail_handler/mail_handler_spec.rb b/spec/lib/mail_handler/mail_handler_spec.rb index efa89b6e0..3ccccc6bc 100644 --- a/spec/lib/mail_handler/mail_handler_spec.rb +++ b/spec/lib/mail_handler/mail_handler_spec.rb @@ -255,19 +255,18 @@ end describe "when parsing HTML mail" do it "should display UTF-8 characters in the plain text version correctly" do html = "<html><b>foo</b> është" - plain_text = MailHandler._get_attachment_text_internal_one_file('text/html', html) + plain_text = MailHandler.get_attachment_text_one_file('text/html', html) plain_text.should match(/është/) end end describe "when getting the attachment text" do - it "should not raise an error if the expansion of a zip file raises an error" do mock_entry = mock('ZipFile entry', :file? => true) mock_entry.stub!(:get_input_stream).and_raise("invalid distance too far back") Zip::ZipFile.stub!(:open).and_return([mock_entry]) - MailHandler._get_attachment_text_internal_one_file('application/zip', "some string") + MailHandler.get_attachment_text_one_file('application/zip', "some string") end end |