Sha256: 1e09bd2393f32d7d0dd1df7b5f9355e421462a10aa65dd25c9ce403a566753a3

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

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

  it "should blink the sprite with times" do
    @sprite.run_action Blink.with times:1
    @sprite.visible.should == true

    wait 0.1 do
      @sprite.visible.should == false
    end

    wait 0.4 do
      @sprite.visible.should == true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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