Sha256: 8749c63db4d412dcf4c60004a26d805e79af74ca637d510d82a31cbd0c425cd0

Contents?: true

Size: 855 Bytes

Versions: 1

Compression:

Stored size: 855 Bytes

Contents

# frozen_string_literal: true

require 'MonkeyKeyboardEnUs'

describe 'MonkeyKeyboardEnUs' do
  before(:all) do
    @it = MonkeyEngine::MonkeyKeyboardEnUs.instance
  end

  context 'keys' do
  end

  context 'left_keys' do
    it 'should have the correct amount of keyboard entries on the left side of the keyboard' do
      key_count = 0

      @it.keys.each do |key|
        key_count += key.keyboard_key_weight if key.keyboard_key_section == :left
      end

      @it.left_keys.count.should == key_count
    end
  end

  context 'right_keys' do
    it 'should have the correct amount of keyboard entries on the right side of the keyboard' do
      key_count = 0

      @it.keys.each do |key|
        key_count += key.keyboard_key_weight if key.keyboard_key_section == :right
      end

      @it.right_keys.count.should == key_count
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
MonkeyEngine-2.0.0 spec/monkey_keyboard_en_us_spec.rb