From 6ca1f3eec4222924c7e23642a68b512105b7ef80 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 6 Apr 2023 16:15:41 +0900 Subject: [PATCH] Load only SyntaxSuggest::VERSION for version check --- spec/syntax_suggest/integration/ruby_command_line_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/syntax_suggest/integration/ruby_command_line_spec.rb b/spec/syntax_suggest/integration/ruby_command_line_spec.rb index e7523ee666..b41a4c86e3 100644 --- a/spec/syntax_suggest/integration/ruby_command_line_spec.rb +++ b/spec/syntax_suggest/integration/ruby_command_line_spec.rb @@ -58,7 +58,7 @@ module SyntaxSuggest EOM script.write(contents) - out = `#{ruby} -I#{lib_dir} -rsyntax_suggest #{script} 2>&1` + out = `#{ruby} -I#{lib_dir} -rsyntax_suggest/version #{script} 2>&1` expect(out).to include("suggest_version is #{SyntaxSuggest::VERSION}").once end