1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Do not break rubyspec for old Ruby

Fixing 7d805e67f3
This commit is contained in:
Takashi Kokubun 2019-05-08 15:13:33 +09:00
parent 229e5053a1
commit a7cbb65956
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -449,7 +449,9 @@ 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
ModuleSpecs::Autoload.const_defined?("P").should be_true
ruby_version_is "2.7" do
ModuleSpecs::Autoload.const_defined?("P").should be_true
end
end
it "loads the file when opening a module that is the autoloaded constant" do