# File test/bin/test_mail.rb, line 161 def test_main_0301 @obj.main([ "--from", "from-address", "--to", "to-address", "--subject", "subject", "--text", "text", "--smtp", "smtp-server", "--account=user", "--password=secret"]) assert_match( "Address: smtp-server\n" + "Port: 25\n" + "Helo: localhost.localdomain\n" + "User: user\n" + "Secret: secret\n" + "Authtype: \n", @string_io.string) end