summaryrefslogtreecommitdiff
path: root/spec/ruby
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-10-27 16:10:25 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-28 13:43:02 -0400
commite53d07f583866e6df7a88963ada33cad68018ebd (patch)
treec65d78bdc6475760a11c1447c462a67b5b689a06 /spec/ruby
parentd8e97169baf3073366f768a52956c43a1d4b0806 (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5038
Diffstat (limited to 'spec/ruby')
-rw-r--r--spec/ruby/command_line/dash_v_spec.rb2
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 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