Skip to content

Commit

Permalink
pass gutter game
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay Sturm committed Sep 15, 2013
1 parent 799f24c commit 6d23c97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 01-bowling_game/lib/bowling_game.rb
Expand Up @@ -4,6 +4,6 @@ def roll(pins)
end

def score

0
end
end
7 changes: 6 additions & 1 deletion 01-bowling_game/spec/lib/bowling_game_spec.rb
@@ -1,11 +1,16 @@
require 'bowling_game'

describe BowlingGame do
let(:game) { BowlingGame.new }

describe '#roll' do

end

describe '#score' do

it 'returns 0 for the gutter game' do
20.times { game.roll(0) }
expect(game.score).to eq 0
end
end
end

0 comments on commit 6d23c97

Please sign in to comment.