ruby-changes:59865
From: Benoit <ko1@a...>
Date: Wed, 29 Jan 2020 02:03:32 +0900 (JST)
Subject: [ruby-changes:59865] 0ad0e63887 (master): Fix version guard in __dir__ spec
https://git.ruby-lang.org/ruby.git/commit/?id=0ad0e63887 From 0ad0e638872a07eafb87989681b05d24d9e0c87f Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Tue, 28 Jan 2020 18:01:59 +0100 Subject: Fix version guard in __dir__ spec diff --git a/spec/ruby/core/kernel/__dir___spec.rb b/spec/ruby/core/kernel/__dir___spec.rb index e2bcc6e..64b4391 100644 --- a/spec/ruby/core/kernel/__dir___spec.rb +++ b/spec/ruby/core/kernel/__dir___spec.rb @@ -12,7 +12,7 @@ describe "Kernel#__dir__" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/kernel/__dir___spec.rb#L12 end end - ruby_version_is ""..."2.7" do + ruby_version_is ""..."2.8" do context "when used in eval with top level binding" do it "returns the real name of the directory containing the currently-executing file" do eval("__dir__", binding).should == File.realpath(File.dirname(__FILE__)) @@ -20,7 +20,7 @@ describe "Kernel#__dir__" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/kernel/__dir___spec.rb#L20 end end - ruby_version_is "2.7" do + ruby_version_is "2.8" do context "when used in eval with top level binding" do it "returns nil" do eval("__dir__", binding).should == nil -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/