Load only SyntaxSuggest::VERSION for version check

This commit is contained in:
Hiroshi SHIBATA 2023-04-06 16:15:41 +09:00
parent 7ab640d9dd
commit 6ca1f3eec4
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -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