Sha256: e84899c0a97e2180a5d89f3f1c53f877f6a1ab11af77cbca31d1fe7a2aacd8c7

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

describe Joybox::Actions::Place do
  behaves_like "Action Sprite"

  it "should place the sprite in position" do
    @sprite.position.should == CGPointMake(5, 5)
    @sprite.run_action Place.in position: [100, 100]
    
    wait 0.1 do
      @sprite.position.should == CGPointMake(100, 100)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
joybox-1.1.1 spec/motion/joybox/actions/place_spec.rb
joybox-1.1.0 spec/motion/joybox/actions/place_spec.rb