From e53d07f583866e6df7a88963ada33cad68018ebd Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Wed, 27 Oct 2021 16:10:25 -0400 Subject: Rename ::YJIT to RubyVM::YJIT Since the YJIT Ruby module is CRuby specific and not meant for general use, it should live under RubyVM instead of at top level. --- spec/ruby/command_line/dash_v_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/ruby') diff --git a/spec/ruby/command_line/dash_v_spec.rb b/spec/ruby/command_line/dash_v_spec.rb index 4090abb63d..89cef6c3bd 100644 --- a/spec/ruby/command_line/dash_v_spec.rb +++ b/spec/ruby/command_line/dash_v_spec.rb @@ -7,6 +7,6 @@ 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) - end unless defined?(YJIT) && YJIT.enabled? # pending. not sure why MJIT doesn't need anything to fix this. + end unless defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled? # pending. not sure why MJIT doesn't need anything to fix this. end end -- cgit v1.2.3