Skip to content

Instantly share code, notes, and snippets.

@morgo
Created June 19, 2017 09:45
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 morgo/90e9531a664c0e89ded60487c2857d5a to your computer and use it in GitHub Desktop.
Save morgo/90e9531a664c0e89ded60487c2857d5a to your computer and use it in GitHub Desktop.
Hypothetical Case
# Initial Data does not make sense
# should be either "Harvey Dent" or "Two Face"
id: 1, firstname: "Two Face", lastname: "Dent"
# Assume RR isolation
session1.start
session2.start
session1.firstname = "Two"
session1.lastname = "Face"
session1.save
session2.firstname = "Harvey"
session2.lastname = "Dent"
session2.save
# Outcome if sending "patch" only:
id: 1, firstname: "Two", lastname: "Dent"
# Outcome if sending "put":
id: 1, firstname: "Harvey", lastname: "Dent"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment