Skip to content

Commit

Permalink
Fix type ignorning => ignoring
Browse files Browse the repository at this point in the history
Updated the spec as well.
  • Loading branch information
Adam Derewecki committed Jun 27, 2012
1 parent f19ffd4 commit fbdcc8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mail/field.rb
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion spec/mail/message_spec.rb
Expand Up @@ -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

Expand Down

0 comments on commit fbdcc8a

Please sign in to comment.