aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/dir/shared/glob.rb
diff options
context:
space:
mode:
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