Sha256: 077423c270e30d2cfa439af037dea0e3ac31462230d181030ee64c6d25daef80

Contents?: true

Size: 525 Bytes

Versions: 39

Compression:

Stored size: 525 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "..", "spec_helper")

describe "Redcar::Keymap::Builder DSL" do
  it "creates a keymap" do
    builder = Redcar::Keymap::Builder.new("test", :osx) {}
    builder.keymap.should be_an_instance_of(Redcar::Keymap)
    builder.keymap.length.should == 0
  end
  
  it "add entries to the keymap" do
    builder = Redcar::Keymap::Builder.new("test", :osx) do
      link "Ctrl+S", :NewCommand
    end
    builder.keymap.length.should == 1
    builder.keymap.command("Ctrl+S")
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
redcar-0.11.0dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.10 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.9.2 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.9.1 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.9.0 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.8.1 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.8 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.7 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.6.1 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.6 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.6.1dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.5.1 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.5 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.5.6dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.5.5dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.5.4dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.5.3dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.5.2dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.5.1dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.4.1 plugins/application/spec/application/keymap/builder_spec.rb