Sha256: c7c622ecf00c87edd1470c09e9e7e41fd15184cd83b7e60da9477b4e49579bda

Contents?: true

Size: 702 Bytes

Versions: 3

Compression:

Stored size: 702 Bytes

Contents

# -*- encoding : utf-8 -*-
require 'unit/spec_helper'
require 'ashikawa-core/key_options'

describe Ashikawa::Core::KeyOptions do
  let(:type) { double }
  let(:offset) { double }
  let(:increment) { double }
  let(:allow_user_keys) { double }
  let(:raw_key_options) do
    {
      'type' => type,
      'offset' => offset,
      'increment' => increment,
      'allowUserKeys' => allow_user_keys
    }
  end

  describe 'initialized key options' do
    subject { Ashikawa::Core::KeyOptions.new(raw_key_options) }

    its(:type) { should eq(type) }
    its(:offset) { should eq(offset) }
    its(:increment) { should eq(increment) }
    its(:allow_user_keys) { should eq(allow_user_keys) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ashikawa-core-0.11.0 spec/unit/key_options_spec.rb
ashikawa-core-0.10.0 spec/unit/key_options_spec.rb
ashikawa-core-0.9.0 spec/unit/key_options_spec.rb