aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorTeddy Wing2015-04-14 17:45:33 -0400
committerTeddy Wing2015-04-14 17:45:33 -0400
commit55957ad3f8fb92f4b94f73e6637a9b54fa5bdefc (patch)
tree94922bdc7d76f4cccfa0bb5be003923f6293ed4d /spec
parent4ef14b7315bb6bdb5a717f7d0ed5a4ff8d419731 (diff)
downloadtic-tac-toe-55957ad3f8fb92f4b94f73e6637a9b54fa5bdefc.tar.bz2
Add some empty test for Player movement
Test some code for an API concept for player, ideas for tests of the `Player#move` method.
Diffstat (limited to 'spec')
-rw-r--r--spec/player_spec.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/player_spec.rb b/spec/player_spec.rb
new file mode 100644
index 0000000..7456031
--- /dev/null
+++ b/spec/player_spec.rb
@@ -0,0 +1,21 @@
+require 'spec_helper'
+require 'board'
+require 'player'
+
+describe Player do
+ describe '#move' do
+ before do
+ board = Board.new
+ @player = Player.new('X', board)
+ end
+
+ it 'raises an ArgumentError given invalid coordinates' do
+ end
+
+ it 'adds a piece to the correct coordinates on `board`' do
+ end
+
+ it 'uses the correct insignia for the move' do
+ end
+ end
+end