We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f97297 commit 6710793Copy full SHA for 6710793
spec/ruby/core/dir/shared/glob.rb
@@ -205,6 +205,14 @@
205
Dir.send(@method, '**/').sort.should == expected
206
end
207
208
+ it "recursively matches any subdirectories except './' or '../' with '**/' from the base directory if that is specified" do
209
+ expected = %w[
210
+ nested/directory
211
+ ]
212
+
213
+ Dir.send(@method, '**/*ory', base: 'deeply').sort.should == expected
214
+ end
215
216
ruby_version_is ''...'3.1' do
217
it "recursively matches any subdirectories including ./ and ../ with '.**/'" do
218
Dir.chdir("#{DirSpecs.mock_dir}/subdir_one") do
0 commit comments