Created
April 29, 2012 20:29
-
-
Save jondot/2553086 to your computer and use it in GitHub Desktop.
testing
This file contains 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
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