Skip to content

Commit

Permalink
Add more tests for draw?
Browse files Browse the repository at this point in the history
  • Loading branch information
aturkewi committed May 16, 2016
1 parent e0adc2e commit ffb74e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/game_status_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@
expect(draw?(board)).to be_truthy
end

it 'returns false for a won game' do
it 'returns false for a game won in the first row' do
board = ["X", "X", "X", "O", "X", "O", "O", "O", "X"]

expect(draw?(board)).to be_falsey
end

it 'returns false for a won game diagonaly' do
board = ["X", "O", "X", "O", "X", "O", "O", "O", "X"]

expect(draw?(board)).to be_falsey
Expand Down

0 comments on commit ffb74e0

Please sign in to comment.