Navigation Menu

Skip to content

Commit

Permalink
Add a test for charset
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed Aug 20, 2012
1 parent 14b9c54 commit 1480dc5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/mail/message_spec.rb
Expand Up @@ -116,6 +116,11 @@ def basic_email
mail.sub_type.should eq 'plain'
end

it "should not explode on unparseable content-type field" do
mail = Mail::Message.new("Content-Type: txt/plain; charset=utf-8;")
doing{ mail.charset }.should_not raise_error
end

it "should be able to pass an empty reply-to header" do
mail = Mail.new(File.read(fixture('emails', 'error_emails', 'empty_in_reply_to.eml')))
mail.in_reply_to.should be_blank
Expand Down

2 comments on commit 1480dc5

@jeremy
Copy link

@jeremy jeremy commented on 1480dc5 Jan 28, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ConradIrwin
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I'll prune my dead branches :).

Please sign in to comment.