summaryrefslogtreecommitdiff
path: root/spec/ruby/core/dir/shared/glob.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-09-29 19:13:37 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-09-29 19:13:37 +0200
commit070cbe22b70ec2bec36c7cfc84b726510afa306f (patch)
tree56cee87834c85bd9f358ebee51bab4893fb9952f /spec/ruby/core/dir/shared/glob.rb
parentd51b4e34fbdbe1a845aa2251b1fa3304de809b32 (diff)
Update to ruby/spec@34e6246
Diffstat (limited to 'spec/ruby/core/dir/shared/glob.rb')
-rw-r--r--spec/ruby/core/dir/shared/glob.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/dir/shared/glob.rb b/spec/ruby/core/dir/shared/glob.rb
index 62675145df..b47e23b41c 100644
--- a/spec/ruby/core/dir/shared/glob.rb
+++ b/spec/ruby/core/dir/shared/glob.rb
@@ -331,14 +331,14 @@ describe :dir_glob, shared: true do
it "returns [] if specified path does not exist" do
path = File.join(@mock_dir, "fake-name")
- File.exist?(path).should == false
+ File.should_not.exist?(path)
Dir.send(@method, "*", base: path).should == []
end
it "returns [] if specified path is a file" do
path = File.join(@mock_dir, "a/b/x")
- File.exist?(path).should == true
+ File.should.exist?(path)
Dir.send(@method, "*", base: path).should == []
end