1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Import spec examples from ruby/syntax_suggest

This commit is contained in:
Hiroshi SHIBATA 2022-08-19 15:37:45 +09:00
parent 3504be1bc1
commit 0d9f4ea0d4
Notes: git 2022-08-26 12:16:18 +09:00
26 changed files with 14536 additions and 0 deletions

View file

@ -0,0 +1,22 @@
# frozen_string_literal: true
require_relative "../spec_helper"
module SyntaxSuggest
RSpec.describe "exe" do
def exe_path
root_dir.join("exe").join("syntax_suggest")
end
def exe(cmd)
out = run!("#{exe_path} #{cmd}", raise_on_nonzero_exit: false)
puts out if ENV["SYNTAX_SUGGEST_DEBUG"]
out
end
it "prints the version" do
out = exe("-v")
expect(out.strip).to include(SyntaxSuggest::VERSION)
end
end
end