summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-06 16:15:41 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-06 16:15:41 +0900
commit6ca1f3eec4222924c7e23642a68b512105b7ef80 (patch)
tree98e7db009c7c291bc855371a609833a34874f006 /spec
parent7ab640d9dd27eefdec138a0cf611072a76cc6cba (diff)
downloadruby-6ca1f3eec4222924c7e23642a68b512105b7ef80.tar.gz
Load only SyntaxSuggest::VERSION for version check
Diffstat (limited to 'spec')
-rw-r--r--spec/syntax_suggest/integration/ruby_command_line_spec.rb2
1 files changed, 1 insertions, 1 deletions
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