Created
October 31, 2012 19:49
-
-
Save jaycfields/3989376 to your computer and use it in GitHub Desktop.
let it out
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
(ns blog-expectations | |
(:use expectations) | |
(:import [org.joda.time DateTime])) | |
(defn timestamp-event [m t] | |
(assoc m :time t)) | |
(expect-let [now (DateTime.)] | |
{:time now} | |
(timestamp-event {} now)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment