aboutsummaryrefslogtreecommitdiffstats
path: root/spec/player_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/player_spec.rb')
-rw-r--r--spec/player_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/player_spec.rb b/spec/player_spec.rb
index d33ac05..11bfd35 100644
--- a/spec/player_spec.rb
+++ b/spec/player_spec.rb
@@ -13,6 +13,14 @@ describe Player do
end
end
+ describe '#insignia' do
+ it 'must be the correct insignia' do
+ insignia = Player::INSIGNIAS[:o]
+ player = Player.new(insignia, Board.new)
+ player.insignia.must_equal insignia
+ end
+ end
+
describe '#move' do
before do
@board = Board.new