Skip to content

Commit

Permalink
Add test case for CocoaPods#835
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-makarov committed Jul 14, 2021
1 parent 2700820 commit b03decf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions spec/project/object/group_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,28 @@ module ProjectSpecs
]
end

it 'sorts by full path when filename is identical' do
files = %w(
zh-Hant.lproj/InfoPlist.strings
he.lproj/InfoPlist.strings
ar.lproj/InfoPlist.strings
en.lproj/InfoPlist.strings
el.lproj/InfoPlist.strings
)
files.each do |file|
@group.new_file(file)
end
@group.sort

@group.children.map(&:path).should == %w[
ar.lproj/InfoPlist.strings
el.lproj/InfoPlist.strings
en.lproj/InfoPlist.strings
he.lproj/InfoPlist.strings
zh-Hant.lproj/InfoPlist.strings
]
end

it 'can sort groups above' do
files = %w(B.m A.h B.h A.m)
files.each do |file|
Expand Down

0 comments on commit b03decf

Please sign in to comment.