Sha256: e2999b124ca9be5cd312232fb9e71f6a589767767a2725669f15c7fa9276e73a
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
# encoding: utf-8 RSpec.describe TTY::Editor, '#executables' do it "returns default executables" do expect(TTY::Editor.executables).to be_an(Array) end it "includes default editor execs" do allow(ENV).to receive(:[]).with('VISUAL').and_return(nil) allow(ENV).to receive(:[]).with('EDITOR').and_return(nil) expect(TTY::Editor.executables).to eq([ 'vim', 'vi', 'emacs', 'nano', 'nano-tiny', 'pico', 'mate -w' ]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tty-editor-0.4.1 | spec/unit/executables_spec.rb |