Sha256: 32a6eddb70c3e25492fd25b946d135e329b0ffdc2457b7b45522214c96e8f9f6

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 Bytes

Contents

describe Ray::Joystick do
  describe ".handle_event" do
    context "when handle_event= is called" do
      before :all do Ray.init end

      it "should change its value" do
        Ray::Joystick.handle_event = true
        Ray::Joystick.handle_event.should be_true

        Ray::Joystick.handle_event = false
        Ray::Joystick.handle_event.should be_false
      end

       after :all do Ray.init end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ray-0.0.0.pre2 spec/ray/joystick_spec.rb