Skip to content
Browse files

Fix type ignorning => ignoring

Updated the spec as well.
  • Loading branch information...
1 parent f19ffd4 commit fbdcc8ad87a7e962fb315ba53d6fee0289006ed8 Adam Derewecki committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/mail/field.rb
  2. +1 −1 spec/mail/message_spec.rb
View
2 lib/mail/field.rb
@@ -148,7 +148,7 @@ def split(raw_field)
match_data = raw_field.mb_chars.match(/^(#{FIELD_NAME})\s*:\s*(#{FIELD_BODY})?$/)
[match_data[1].to_s.mb_chars.strip, match_data[2].to_s.mb_chars.strip]
rescue
- STDERR.puts "WARNING: Could not parse (and so ignorning) '#{raw_field}'"
+ STDERR.puts "WARNING: Could not parse (and so ignoring) '#{raw_field}'"
end
def create_field(name, value, charset)
View
2 spec/mail/message_spec.rb
@@ -100,7 +100,7 @@ def basic_email
end
it "should raise a warning (and keep parsing) on having an incorrectly formatted header" do
- STDERR.should_receive(:puts).with("WARNING: Could not parse (and so ignorning) 'quite Delivered-To: xxx@xxx.xxx'")
+ STDERR.should_receive(:puts).with("WARNING: Could not parse (and so ignoring) 'quite Delivered-To: xxx@xxx.xxx'")
Mail::Message.new(File.read(fixture('emails', 'plain_emails', 'raw_email_incorrect_header.eml')))
end

0 comments on commit fbdcc8a

Please sign in to comment.
Something went wrong with that request. Please try again.