Not able to parse and return false when passed an invalid email address.
This is a test case I added in spec/mail/parsers/address_lists_parser_spec.rb and ran
it "should parse an address" do
text = 'ddfafo asd'
a = Mail::Parsers::AddressListsParser.new
expect(a.parse(text)).not_to be_nil
end
And I get this error:
Mail::Field::ParseError:
Mail::AddressList can not parse |my test email|
I am on ruby 2.0.0p451
Not able to parse and return false when passed an invalid email address. This is a test case I added in spec/mail/parsers/address_lists_parser_spec.rb and ran it "should parse an address" do text = 'ddfafo asd' a = Mail::Parsers::AddressListsParser.new expect(a.parse(text)).not_to be_nil end
And I get this error: Mail::Field::ParseError: Mail::AddressList can not parse |my test email|