Skip to content

Instantly share code, notes, and snippets.

@abyx
Created June 2, 2010 19:11
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 abyx/422831 to your computer and use it in GitHub Desktop.
Save abyx/422831 to your computer and use it in GitHub Desktop.
before refactoring
class VCR:
function eject:
_rewind
_open_lid
class VCRTest:
function test_rewinds_when_ejecting:
# stuff
function test_opens_lid_to_eject:
# stuff
class AutomaticPresenter:
function change_movies:
# ...
vcr.eject
# ...
class AutomaticPresenterTest:
function test_ejects_tape_when_changing_movies:
# stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment