Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # bowling_spec.rb
- require 'bowling'
- describe Bowling do
- before(:each) do
- @bowling = Bowling.new
- end
- it "should score 0 for gutter game" do
- 20.times { @bowling.hit(0) }
- @bowling.score.should == 0
- end
- end
Add Comment
Please, Sign In to add comment