Skip to content
Browse files

30:0 + p1 -> not over : red

  • Loading branch information...
1 parent 6f34d44 commit 47bb00e3aa74fcabf115f71002afe3236bd3b35c @ilkerde committed
Showing with 15 additions and 0 deletions.
  1. +15 −0 KataTennis.Coffee/spec/tennis_spec.coffee
View
15 KataTennis.Coffee/spec/tennis_spec.coffee
@@ -56,6 +56,21 @@ describe 'when score is 15:0', ->
it 'should have score 30:0', ->
expect(game.currentScore()).toEqual '30:0'
+describe 'when score is 30:0', ->
+ game =
+
+ beforeEach () ->
+ game = new Game [2,0]
+
+ describe 'when player 1 scores', ->
+ game =
+
+ beforeEach () ->
+ game.scorePlayer 1
+
+ it 'should not be game over', ->
+ expect(game.isOver()).toBeFalsy()
+
describe 'when score is 40:0', ->
game =

0 comments on commit 47bb00e

Please sign in to comment.
Something went wrong with that request. Please try again.