Browse files

Add send-message test for two-arg arity

  • Loading branch information...
1 parent d8bbffc commit 2c84cd23f9ee006b35ba739563d37e70d0c72b1f @drewr committed Feb 25, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/postal/test/core.clj
View
5 test/postal/test/core.clj
@@ -41,6 +41,11 @@
:port "25"}
{:from "foo@example.com"
:to "bar@example.com"}))))
+ (is (= :smtp (:which
+ (postal/send-message {:host "localhost"
+ :port "25"}
+ {:from "foo@example.com"
+ :to "bar@example.com"}))))
(is (= :sendmail (:which
(postal/send-message {:from "foo@example.com"
:to "bar@example.com"}))))))

0 comments on commit 2c84cd2

Please sign in to comment.