Skip to content

Instantly share code, notes, and snippets.

@jaycfields
Created May 27, 2012 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaycfields/2814150 to your computer and use it in GitHub Desktop.
Save jaycfields/2814150 to your computer and use it in GitHub Desktop.
(ns user-expectations
(:use expectations user))
(expect "John Dory" (full-name {:fname "John" :lname "Dory"}))
(ns user-expectations.scenarios
(:use expectations.scenarios user))
(scenario
(with-redefs [users (atom #{{:fname "Mary", :lname "Dory"} {:fname "John", :lname "Dory"}})]
(expect ["Mary Dory" "John Dory"] (all-names))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment