aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/board_spec.rb3
-rw-r--r--spec/player_spec.rb8
2 files changed, 11 insertions, 0 deletions
diff --git a/spec/board_spec.rb b/spec/board_spec.rb
index ae1bdd0..09f50e1 100644
--- a/spec/board_spec.rb
+++ b/spec/board_spec.rb
@@ -57,4 +57,7 @@ EOF
@board.instance_variable_get(:@board)[1][2].must_equal value
end
end
+
+ describe '#winner?' do
+ end
end
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