Skip to content

Instantly share code, notes, and snippets.

@thurloat
Forked from yashke/gist:1639918
Created January 20, 2012 11:56
Show Gist options
  • Save thurloat/1647030 to your computer and use it in GitHub Desktop.
Save thurloat/1647030 to your computer and use it in GitHub Desktop.
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
@thurloat
Copy link
Author

remove ALL THE parens!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment