Skip to content

Commit

Permalink
replace fix values
Browse files Browse the repository at this point in the history
  • Loading branch information
lxxxvi committed Oct 8, 2021
1 parent e3ef862 commit e28eb3d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions core/dir/shared/glob.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@
end
end

ruby_version_is "3.0" do
it "result is sorted by default" do
result = Dir.send(@method, '*')
result.should == result.sort
end

it "result is sorted with sort: true" do
result = Dir.send(@method, '*', sort: true)
result.should == result.sort
end

it "sorted: false returns same files" do
result = Dir.send(@method,'*', sort: false)
result.sort.should == Dir.send(@method, '*').sort
end
end

it "matches non-dotfiles with '*'" do
expected = %w[
brace
Expand Down

0 comments on commit e28eb3d

Please sign in to comment.