Created
June 6, 2015 15:34
-
-
Save kenmazaika/b6fc669bbcb4820e01a6 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
| g = Game.last | |
| g.expects(:check?).returns(true) | |
| # make sure you can't move into check | |
| g = Game.last | |
| g.expects(:check?).returns(false) | |
| # make sure it's allowed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment