Skip to content

Instantly share code, notes, and snippets.

@tadman
Created June 11, 2009 18:25
Show Gist options
  • Save tadman/128135 to your computer and use it in GitHub Desktop.
Save tadman/128135 to your computer and use it in GitHub Desktop.
def test_parse_address
[
[ '[email protected]', [ '[email protected]', nil ] ],
[ '[email protected]', [ '[email protected]', nil ] ],
[ '[email protected] (Amy Test)', [ '[email protected]', nil ] ],
[ 'Bob Test <[email protected]>', [ '[email protected]', 'Bob Test' ] ]
].each do |test_case|
assert_equal test_case[1], Message.parse_email_address(test_case[0])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment