diff options
| author | Teddy Wing | 2015-04-14 17:52:41 -0400 |
|---|---|---|
| committer | Teddy Wing | 2015-04-14 17:52:41 -0400 |
| commit | 231060de4c493a9c6ba3510a9be4d405517af5c6 (patch) | |
| tree | d4ce2f9a9c4c4407fb0f3b65cbdaaa10c9f4d04c /spec | |
| parent | 55957ad3f8fb92f4b94f73e6637a9b54fa5bdefc (diff) | |
| download | tic-tac-toe-231060de4c493a9c6ba3510a9be4d405517af5c6.tar.bz2 | |
Player: Add constants for player insignias ('X' & 'O')
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/player_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/player_spec.rb b/spec/player_spec.rb index 7456031..3306095 100644 --- a/spec/player_spec.rb +++ b/spec/player_spec.rb @@ -3,6 +3,16 @@ require 'board' require 'player' describe Player do + describe 'insignias' do + it 'knows what an X insignia is' do + Player::INSIGNIAS[:x].must_equal 'X' + end + + it 'knows what an O insignia is' do + Player::INSIGNIAS[:o].must_equal 'O' + end + end + describe '#move' do before do board = Board.new |
