Skip to content

Commit

Permalink
30:0 + p1 -> not over : red
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkerde committed Mar 2, 2012
1 parent 6f34d44 commit 47bb00e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions KataTennis.Coffee/spec/tennis_spec.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ describe 'when score is 15:0', ->
it 'should have score 30:0', -> it 'should have score 30:0', ->
expect(game.currentScore()).toEqual '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', -> describe 'when score is 40:0', ->
game = game =


Expand Down

0 comments on commit 47bb00e

Please sign in to comment.