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.4 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.10.1dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.10.0dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.9 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.9.0dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.8.4 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.8.3 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.8.2 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.8.1 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.8 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.7.1 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.7 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.6 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.5 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.4.3 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.4.2 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.4.1 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.4 plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.3.3 plugins/application/spec/application/keymap/builder_spec.rb