ruby-changes:50457
From: naruse <ko1@a...>
Date: Mon, 26 Feb 2018 17:01:09 +0900 (JST)
Subject: [ruby-changes:50457] naruse:r62584 (trunk): r62071 is backported into Ruby 2.5 [Bug #14407]
naruse 2018-02-26 17:01:05 +0900 (Mon, 26 Feb 2018) New Revision: 62584 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62584 Log: r62071 is backported into Ruby 2.5 [Bug #14407] Modified files: trunk/spec/ruby/language/defined_spec.rb Index: spec/ruby/language/defined_spec.rb =================================================================== --- spec/ruby/language/defined_spec.rb (revision 62583) +++ spec/ruby/language/defined_spec.rb (revision 62584) @@ -756,13 +756,13 @@ describe "The defined? keyword for a sco https://github.com/ruby/ruby/blob/trunk/spec/ruby/language/defined_spec.rb#L756 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/