Created
January 19, 2012 12:47
-
-
Save yashke/1639918 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
data = ServerResponses.initialData | |
# data.player.points = 10 | |
# oh noes, we have ServerResponses.initialData infected | |
data = _.clone(data) | |
data.player = _.clone(data.player) | |
data.player.points = 10 | |
server_mock.respondTo("GET /something", data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment