Sha256: f730222f2f74e770bbf6483c86c1621df25c45dbf8559facc1b48d632d3cc7e5

Contents?: true

Size: 392 Bytes

Versions: 6

Compression:

Stored size: 392 Bytes

Contents

# $Id$

require File.join(File.dirname(__FILE__), %w[spec_helper])

describe Ludy do
end

# bowling.rb
class Bowling # :nodoc:
  def hit(pins)
  end

  def score
    0
  end
end

# bowling_spec.rb
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

# EOF

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
godfat-ludy-0.1.13 spec/ludy_spec.rb
ludy-0.1.15 spec/ludy_spec.rb
ludy-0.1.10 spec/ludy_spec.rb
ludy-0.1.11 spec/ludy_spec.rb
ludy-0.1.13 spec/ludy_spec.rb
ludy-0.1.9 spec/ludy_spec.rb