Skip to content

Instantly share code, notes, and snippets.

@agravier
Created November 9, 2010 16:44
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 agravier/669354 to your computer and use it in GitHub Desktop.
Save agravier/669354 to your computer and use it in GitHub Desktop.
atticus mocks don't allow overloaded functions
(atticus.mock/expects
[(update-game-state [a b & rest] (atticus.mock/times 5))]
(call-tested-f))
(atticus.mock/expects
[(update-game-state [a b] (atticus.mock/times 3))
(update-game-state [a b c d] (atticus.mock/times 2))]
(call-tested-f))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment