mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
df1cd0f438
commit
bde455170b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue