Sha256: 036bb552bb21a7b3fdde9db6428527b0130cefb19e2c0f2d8235886044dbb8a4
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
require_relative '../../helper' shared :with_buffer do before do @buffer ||= VER::Buffer.new @buffer.value = <<-TEXT Fugiat eos voluptatum officia fugit ad sit qui. Alias et voluptas sapiente sed. Unde ut qui esse repellendus sunt dolorum officia. Officia accusamus perferendis ab. Nesciunt repellendus et recusandae dolorum quis repudiandae ad minima. Ducimus quo et ea. Qui cumque blanditiis aliquam accusamus perspiciatis provident sapiente fuga. TEXT @buffer.insert = '1.0' @buffer.major_mode = VER::MajorMode[:Fundamental] @insert = @buffer.at_insert end after do @buffer.value = '' end def buffer @buffer end def insert @insert end def type(string) buffer.type(string) end def minibuf buffer.minibuf end end shared :control_mode do behaves_like :with_buffer before do buffer.minor_mode?(:insert).should == nil Tk::Clipboard.set 'foo' end end VER.spec keymap: 'emacs' do describe 'Keymap for Emacs' do describe 'movement' do behaves_like :with_buffer it 'goes to first column with <Home> and <Control-a>' do insert.index = '1.0 lineend' type '<Home>' insert.index.should == '1.0 linestart' insert.index = '1.0 lineend' type '<Control-a>' insert.index.should == '1.0 linestart' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ver-2010.08 | spec/ver/keymap/emacs.rb |