Sha256: d418f5e797d28858f0586502bcfe04032f9987e2e24270f90b7260b1a37e54aa

Contents?: true

Size: 536 Bytes

Versions: 17

Compression:

Stored size: 536 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", :OpenNewEditTabCommand
    end
    builder.keymap.length.should == 1
    builder.keymap.command("Ctrl+S")
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
redcar-dev-0.12.17dev plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.16dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.15dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.14dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.13dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.12dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.11dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.10dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.9dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.8dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.7dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.6dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.4dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.3dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.1dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-dev-0.12.0dev-java plugins/application/spec/application/keymap/builder_spec.rb
redcar-0.11 plugins/application/spec/application/keymap/builder_spec.rb