diff options
author | Kevin Newton <kddnewton@gmail.com> | 2024-02-28 11:02:11 -0500 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2024-02-28 11:42:49 -0500 |
commit | 49aa8d655ed8a21cac36f560e883f934ef0bd1ce (patch) | |
tree | bd7bf694bb90b674fdfa56e024819ab7e1700296 /spec/ruby/command_line | |
parent | 1cef366319ed6f30276de5534f226cac4bd9047e (diff) |
[PRISM] Fix version spec to account for prism
Diffstat (limited to 'spec/ruby/command_line')
-rw-r--r-- | spec/ruby/command_line/dash_v_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/command_line/dash_v_spec.rb b/spec/ruby/command_line/dash_v_spec.rb index 7c7ca1bca6..15569fa642 100644 --- a/spec/ruby/command_line/dash_v_spec.rb +++ b/spec/ruby/command_line/dash_v_spec.rb @@ -6,7 +6,7 @@ describe "The -v command line option" do 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') |