Skip to content

Instantly share code, notes, and snippets.

@abyx
Created June 2, 2010 19:28
Show Gist options
  • Save abyx/422856 to your computer and use it in GitHub Desktop.
Save abyx/422856 to your computer and use it in GitHub Desktop.
mid refactoring
class VCR:
function eject(should_rewind=True):
if should_rewind:
rewind
_open_lid
class VCRTest:
function test_rewinds_when_ejecting:
# stuff
function test_opens_lid_to_eject:
# stuff
function test_rewind_actually_spins_tape:
vcr.rewind
# check stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment