Sha256: ae25e1c32e79691d8fd7a06d05379387e6470a5feb434d631818664897fd3c9f
Contents?: true
Size: 838 Bytes
Versions: 5
Compression:
Stored size: 838 Bytes
Contents
require "helper" module Neovim RSpec.describe Executable do describe ".from_env" do it "respects NVIM_EXECUTABLE" do executable = Executable.from_env("NVIM_EXECUTABLE" => "/foo/nvim") expect(executable.path).to eq("/foo/nvim") end it "returns a default path" do executable = Executable.from_env({}) expect(executable.path).to eq("nvim") end end describe "#version" do it "returns the current nvim version" do executable = Executable.from_env expect(executable.version).to match(/^\d+\.\d+\.\d+/) end it "raises with an invalid executable path" do executable = Executable.new("/dev/null") expect { executable.version }.to raise_error(Executable::Error, /\/dev\/null/) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems