Sha256: a067c15e5cd069fa8cc157c883dd7b07857ab9bcf0187856b7a303db1c66aea0

Contents?: true

Size: 352 Bytes

Versions: 8

Compression:

Stored size: 352 Bytes

Contents

require "spec_helper"

describe Karabiner::Remap do
  describe "#to_xml" do
    it "converts key remap to autogen tag" do
      expect(Karabiner::Remap.new("Cmd-Shift-]", "Opt-Ctrl-Up").to_xml).
        to eq("<autogen>__KeyToKey__ KeyCode::BRACKET_RIGHT, VK_COMMAND | VK_SHIFT, KeyCode::CURSOR_UP, VK_OPTION | VK_CONTROL</autogen>")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
karabiner-0.4.0 spec/lib/karabiner/remap_spec.rb
karabiner-0.3.1 spec/lib/karabiner/remap_spec.rb
karabiner-0.3.0 spec/lib/karabiner/remap_spec.rb
karabiner-0.2.1 spec/lib/karabiner/remap_spec.rb
karabiner-0.2.0 spec/lib/karabiner/remap_spec.rb
karabiner-0.1.2 spec/lib/karabiner/remap_spec.rb
karabiner-0.1.1 spec/lib/dotremap/remap_spec.rb
karabiner-0.1.0 spec/lib/dotremap/remap_spec.rb