Created
June 11, 2010 18:56
-
-
Save marick/434896 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
cell = mock() | |
# expectations | |
cell.should_receive(:living?).at_least.once.and_return(true) | |
cell.should_receive(:living_neighbor_count).at_least_once.and_return(0) | |
cell.should_receive(:killed).at_least.once | |
# run test | |
cell.successor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment