aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib/mail_handler/mail_handler_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-12-03 18:49:56 +0000
committerLouise Crow <louise.crow@gmail.com>2012-12-03 18:49:56 +0000
commit826c5ed18300ae4f42dfbf5777d8c43243b8be11 (patch)
treeb63b728d8959afc4019bbf8c6f566c1a3b4f93be /spec/lib/mail_handler/mail_handler_spec.rb
parent5942318f3b1b091dbe96226f6360977443c40f58 (diff)
Use get_part_body in spec.
Diffstat (limited to 'spec/lib/mail_handler/mail_handler_spec.rb')
-rw-r--r--spec/lib/mail_handler/mail_handler_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/mail_handler/mail_handler_spec.rb b/spec/lib/mail_handler/mail_handler_spec.rb
index a3fba0698..6213d3fdf 100644
--- a/spec/lib/mail_handler/mail_handler_spec.rb
+++ b/spec/lib/mail_handler/mail_handler_spec.rb
@@ -17,7 +17,7 @@ describe 'when creating a mail object from raw data' do
it 'should convert an iso8859 email to utf8' do
mail = get_fixture_mail('iso8859_2_raw_email.email')
mail.subject.should have_text(/gjatë/u)
- mail.body.is_utf8?.should == true
+ MailHandler.get_part_body(mail).is_utf8?.should == true
end
end