Created
June 11, 2009 18:25
-
-
Save tadman/128135 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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