Skip to content

Instantly share code, notes, and snippets.

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