Created
April 2, 2016 13:49
-
-
Save kaliatech/f11c68d08fdf8159ba58cb08970cff99 to your computer and use it in GitHub Desktop.
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
// Stub and Mock with assert and computed return | |
1 * srvc.myRepo.save({ it.machineTxt == "Test machine txt." }) >> { args -> | |
assert args[0].machineTxt == "Test machine txt." | |
return args[0] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment