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:
parent
3504be1bc1
commit
0d9f4ea0d4
Notes:
git
2022-08-26 12:16:18 +09:00
26 changed files with 14536 additions and 0 deletions
22
spec/syntax_suggest/integration/exe_cli_spec.rb
Normal file
22
spec/syntax_suggest/integration/exe_cli_spec.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue