diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-26 08:01:05 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-26 08:01:05 +0000 |
commit | bde455170ba4fa2723ddaa9166026b16b79031b4 (patch) | |
tree | dd3c7cd1aa51609cd0be976c64ab53098e1a47d4 /spec/ruby/language/defined_spec.rb | |
parent | df1cd0f438bd17a4d3fbe9077e0b308e0b25c4b5 (diff) | |
download | ruby-bde455170ba4fa2723ddaa9166026b16b79031b4.tar.gz |
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
Diffstat (limited to 'spec/ruby/language/defined_spec.rb')
-rw-r--r-- | spec/ruby/language/defined_spec.rb | 4 |
1 files 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 |