mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@34e6246
This commit is contained in:
parent
d51b4e34fb
commit
070cbe22b7
35 changed files with 127 additions and 133 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue