From 5320f88116ea832a2ccb5c5bb1a6999062658c7a Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 28 Feb 2024 11:02:11 -0500 Subject: [PATCH] [PRISM] Fix version spec to account for prism --- command_line/dash_v_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command_line/dash_v_spec.rb b/command_line/dash_v_spec.rb index 7c7ca1bca..15569fa64 100644 --- a/command_line/dash_v_spec.rb +++ b/command_line/dash_v_spec.rb @@ -6,7 +6,7 @@ describe "when used alone" do it "prints version and ends" do - ruby_exe(nil, args: '-v').should include(RUBY_DESCRIPTION) + ruby_exe(nil, args: '-v').sub("+PRISM ", "").should include(RUBY_DESCRIPTION) end unless (defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?) || (defined?(RubyVM::RJIT) && RubyVM::RJIT.enabled?) || (ENV['RUBY_MN_THREADS'] == '1')