From bde455170ba4fa2723ddaa9166026b16b79031b4 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 26 Feb 2018 08:01:05 +0000 Subject: [PATCH] r62071 is backported into Ruby 2.5 [Bug #14407] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/language/defined_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/ruby/language/defined_spec.rb b/spec/ruby/language/defined_spec.rb index 98f4ee8829..fb3a241ccb 100644 --- a/spec/ruby/language/defined_spec.rb +++ b/spec/ruby/language/defined_spec.rb @@ -756,13 +756,13 @@ describe "The defined? keyword for a scoped constant" do defined?(DefinedSpecs::String).should be_nil end - ruby_version_is ""..."2.6" do + ruby_version_is ""..."2.5" do it "returns 'constant' when a constant is defined on top-level but not on the class" do defined?(DefinedSpecs::Basic::String).should == 'constant' end end - ruby_version_is "2.6" do + ruby_version_is "2.5" do it "returns nil when a constant is defined on top-level but not on the class" do defined?(DefinedSpecs::Basic::String).should be_nil end