Sha256: 28f0436b0cfb081bfa28a0a2828e56a6b1fc43b5cbd387a14a625a097eba7c31

Contents?: true

Size: 729 Bytes

Versions: 1

Compression:

Stored size: 729 Bytes

Contents

require 'lotu'

describe "Game" do
  before :each do
    @game = Lotu::Game.new
  end

  it{ @game.should respond_to :close }
  it{ @game.should respond_to :update }
  it{ @game.should respond_to :draw }

  describe "every game tick" do
    before :each do
      @actor = Lotu::Actor.new
    end

    after :each do
      @actor.die
    end

    it "should call #update on actors" do
      @actor.should_receive :update
      @game.update
    end

    it "should call #draw on actors" do
      @actor.should_receive :draw
      @game.draw
    end
  end

end

%Q{
1.upto(100) do |i|
   if i % 3 == 0 || i % 5 == 0
     print 'Fizz' if i % 3 == 0
     print 'Buzz' if i % 5 == 0
   else
    print i
   end
   print "\n"
end
}.size

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lotu-0.1.15 spec/lotu/game_spec.rb