diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-01-28 18:01:59 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-01-28 18:01:59 +0100 |
commit | 0ad0e638872a07eafb87989681b05d24d9e0c87f (patch) | |
tree | e10f3db4d4844665fae0e13ce9ca319557c1de9c /spec/ruby/core | |
parent | 534536c7cc69970fead43df048d55efe518a03f3 (diff) | |
download | ruby-0ad0e638872a07eafb87989681b05d24d9e0c87f.tar.gz |
Fix version guard in __dir__ spec
Diffstat (limited to 'spec/ruby/core')
-rw-r--r-- | spec/ruby/core/kernel/__dir___spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/kernel/__dir___spec.rb b/spec/ruby/core/kernel/__dir___spec.rb index e2bcc6e65a..64b439161f 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 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 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 |