Created
June 2, 2010 19:34
-
-
Save abyx/422862 to your computer and use it in GitHub Desktop.
post refactoring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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