From d736080c8b8731fe8e7be99893eea35b67cbbc0e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 8 May 2019 15:45:13 +0900 Subject: [PATCH] Use ruby_bug guard --- spec/ruby/core/module/autoload_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ruby/core/module/autoload_spec.rb b/spec/ruby/core/module/autoload_spec.rb index f3066de586..eaad4b8df6 100644 --- a/spec/ruby/core/module/autoload_spec.rb +++ b/spec/ruby/core/module/autoload_spec.rb @@ -449,7 +449,7 @@ describe "Module#autoload" do it "does not load the file when accessing the constants table of the module" do ModuleSpecs::Autoload.autoload :P, @non_existent ModuleSpecs::Autoload.const_defined?(:P).should be_true - ruby_version_is "2.7" do + ruby_bug "[Bug #15780]", ""..."2.7" do ModuleSpecs::Autoload.const_defined?("P").should be_true end end