Skip to content

Instantly share code, notes, and snippets.

@arockwell
Created November 10, 2008 17:44
Show Gist options
  • Select an option

  • Save arockwell/23555 to your computer and use it in GitHub Desktop.

Select an option

Save arockwell/23555 to your computer and use it in GitHub Desktop.
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment