diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-29 10:40:07 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-29 12:00:49 +1100 |
commit | c0360fa374b096964b67ff5195e86ef83936c62f (patch) | |
tree | 9f740614b29c71107a98c4aa2aaeae73567747f9 /spec/lib/mail_handler/mail_handler_spec.rb | |
parent | 8dfffc7ae5b9b5e05f4da0d06e961975e02682b1 (diff) |
Replace use of have_text with contain from webrat or match
Diffstat (limited to 'spec/lib/mail_handler/mail_handler_spec.rb')
-rw-r--r-- | spec/lib/mail_handler/mail_handler_spec.rb | 2 |
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 48c32e2bc..79b779687 100644 --- a/spec/lib/mail_handler/mail_handler_spec.rb +++ b/spec/lib/mail_handler/mail_handler_spec.rb @@ -22,7 +22,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.subject.should match /gjatë/u MailHandler.get_part_body(mail).is_utf8?.should == true end |