mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@a585ec3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6c2b589865
commit
9245e097ec
7 changed files with 108 additions and 64 deletions
|
@ -122,6 +122,18 @@ describe "Dir.glob" do
|
|||
Dir.glob('**/**/**').empty?.should == false
|
||||
end
|
||||
|
||||
it "handles simple filename patterns" do
|
||||
Dir.glob('.dotfile').should == ['.dotfile']
|
||||
end
|
||||
|
||||
it "handles simple directory patterns" do
|
||||
Dir.glob('.dotsubdir/').should == ['.dotsubdir/']
|
||||
end
|
||||
|
||||
it "handles simple directory patterns applied to non-directories" do
|
||||
Dir.glob('nondotfile/').should == []
|
||||
end
|
||||
|
||||
platform_is_not(:windows) do
|
||||
it "matches the literal character '\\' with option File::FNM_NOESCAPE" do
|
||||
Dir.mkdir 'foo?bar'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue