Sha256: 7a5f9aad1218007fdb52551211cec1e594126aa07b5762d40fef69ad046c80e1

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

require "spec_helper"

describe Dotremap::Remap do
  describe "#to_xml" do
    it "converts key remap to autogen tag" do
      expect(Dotremap::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

5 entries across 5 versions & 1 rubygems

Version Path
dotremap-0.0.8 spec/lib/dotremap/remap_spec.rb
dotremap-0.0.7 spec/lib/dotremap/remap_spec.rb
dotremap-0.0.6 spec/lib/dotremap/remap_spec.rb
dotremap-0.0.5 spec/lib/dotremap/remap_spec.rb
dotremap-0.0.4 spec/lib/dotremap/remap_spec.rb