Sha256: 36a5fc15a351fdbdb86052f0141950a43966c671a634fb8e14a301f03376cf30
Contents?: true
Size: 767 Bytes
Versions: 5
Compression:
Stored size: 767 Bytes
Contents
require 'helper' require 'actor' describe 'A new actor' do before do opts = {:level=>"level", :input=>"input", :resources=>"resource"} @actor = Actor.new opts end it 'should be alive' do @actor.alive?.should.equal true end it 'should be at (0,0)' do @actor.x.should.equal 0 @actor.y.should.equal 0 end it 'should have atts set' do @actor.level.should.equal "level" @actor.input_manager.should.equal "input" @actor.resource_manager.should.equal "resource" @actor.behaviors.size.should.equal 0 end it 'should fire anything' do should.not.raise do @actor.when :foofoo_bar do "blah" end end end it 'should setup behaviors' do should.flunk 'cannot test easily!' end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
gamebox-0.0.1 | test/test_actor.rb |
gamebox-0.0.2 | test/test_actor.rb |
gamebox-0.0.3 | test/test_actor.rb |
gamebox-0.0.4 | test/test_actor.rb |
gamebox-0.0.5 | test/test_actor.rb |