Skip to content

Instantly share code, notes, and snippets.

@matstc
Created October 21, 2014 13:41
Show Gist options
  • Save matstc/d93c138ba1238c5bd38c to your computer and use it in GitHub Desktop.
Save matstc/d93c138ba1238c5bd38c to your computer and use it in GitHub Desktop.
RSpec example
describe Bowling, "#score" do
it "returns 0 for all gutter game" do
bowling = Bowling.new
20.times { bowling.hit(0) }
bowling.score.should eq(0)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment