Skip to content

Instantly share code, notes, and snippets.

@jondot
Created April 29, 2012 20:29
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 jondot/2553086 to your computer and use it in GitHub Desktop.
Save jondot/2553086 to your computer and use it in GitHub Desktop.
testing
mock(gs).update("journal-id", stamp, "testing 123") { stamp }
mock(gs).get("journal-id", stamp) { nil }
# act: implicitly does: get=>nil, then updates nil to "testing 123"
# assert: does get
# the assert 'get' should not return nil but the value "testing 123"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment