Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Delete Tests
def test_delete_happy_path
db =
db.set "Tufted", "Titmouse"
assert_equal("Titmouse", db.get("Tufted"))
db.delete "Tufted"
assert_equal("NULL", db.get("Tufted"))
def test_delete_absent_key
db =
assert_equal("That key isn't in the database!", db.delete("NoKey"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.