Sha256: 8e4a916956d984baedf814d3a21071b592ff825017b0b91b26be6530ef240ff0
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
describe Joybox::Core::SpriteBatch do describe "Initialization" do it "should initialize with file name" do sprite_batch = SpriteBatch.new file_name: 'sprite_sheet.png' sprite_batch.should.not == nil sprite_batch.texture.should.not == nil sprite_batch.textureAtlas.should.not == nil end it "should initialize with file name and capacity" do sprite_batch = SpriteBatch.new file_name: 'sprite_sheet.png', capacity: 50 sprite_batch.should.not == nil sprite_batch.texture.should.not == nil sprite_batch.textureAtlas.should.not == nil sprite_batch.textureAtlas.capacity.should == 50 end it "should initialize with texture" do texture = CCTextureCache.sharedTextureCache.addImage('sprite_sheet.png') sprite_batch = SpriteBatch.new texture: texture sprite_batch.should.not == nil sprite_batch.texture.should.not == nil end it "should initialize with texture and capacity" do texture = CCTextureCache.sharedTextureCache.addImage('sprite_sheet.png') sprite_batch = SpriteBatch.new texture: texture, capacity: 50 sprite_batch.should.not == nil sprite_batch.texture.should.not == nil sprite_batch.textureAtlas.capacity.should == 50 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | spec/motion/joybox/core/sprite_batch_spec.rb |
joybox-1.1.0 | spec/motion/joybox/core/sprite_batch_spec.rb |