Sha256: 1300ae891a279a5be0344bc0d416ce9464cebfc170eeb9eba9c98e99bc9a119e

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

require 'test_helper'

module Vedeu

  module Bindings

    describe Movement do

      context 'the movement events are defined' do
        it { Vedeu.events.registered?(:_cursor_down_).must_equal(true) }
        it { Vedeu.events.registered?(:_cursor_left_).must_equal(true) }
        it { Vedeu.events.registered?(:_cursor_origin_).must_equal(true) }
        it { Vedeu.events.registered?(:_cursor_position_).must_equal(true) }
        it { Vedeu.events.registered?(:_cursor_reposition_).must_equal(true) }
        it { Vedeu.events.registered?(:_cursor_reset_).must_equal(true) }
        it { Vedeu.events.registered?(:_cursor_right_).must_equal(true) }
        it { Vedeu.events.registered?(:_cursor_up_).must_equal(true) }

        it { Vedeu.events.registered?(:_geometry_down_).must_equal(true) }
        it { Vedeu.events.registered?(:_geometry_left_).must_equal(true) }
        it { Vedeu.events.registered?(:_geometry_right_).must_equal(true) }
        it { Vedeu.events.registered?(:_geometry_up_).must_equal(true) }
      end

    end # Movement

  end # Bindings

end # Vedeu

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vedeu-0.4.48 test/lib/vedeu/bindings/movement_test.rb
vedeu-0.4.47 test/lib/vedeu/bindings/movement_test.rb
vedeu-0.4.46 test/lib/vedeu/bindings/movement_test.rb