Skip to content

Commit

Permalink
cover new test case
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-makarov committed Aug 5, 2021
1 parent c55eac0 commit d641e81
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions spec/censorius_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,19 @@ def recursive_add_file(path)
recursive_add_file('group/in_group.txt')
recursive_add_file('path/to/nested/group/nested.txt')
@project.new_file('built_product.txt', :built_products)
with_different_name = @project.new_file('different_file.txt')
with_different_name.name = 'different_name'

@generator.generate!

expect(@project.sorted_md5s).to eq %W[
expect(@project.sorted_md5s).to eq (%W[
PBXProject(#{@spec_safe_name})
PBXProject(#{@spec_safe_name})/PBXFileReference(${BUILT_PRODUCTS_DIR}/built_product.txt)
PBXProject(#{@spec_safe_name})/PBXFileReference(at_root.txt)
PBXProject(#{@spec_safe_name})/PBXFileReference(group/in_group.txt)
] + [
"PBXProject(#{@spec_safe_name})/PBXFileReference(name: different_name, different_file.txt)"
] + %W[
PBXProject(#{@spec_safe_name})/PBXGroup(/)
PBXProject(#{@spec_safe_name})/PBXGroup(/Frameworks)
PBXProject(#{@spec_safe_name})/PBXGroup(/Products)
Expand All @@ -67,8 +73,8 @@ def recursive_add_file(path)
PBXProject(#{@spec_safe_name})/PBXFileReference(path/to/nested/group/nested.txt)
PBXProject(#{@spec_safe_name})/XCConfigurationList
PBXProject(#{@spec_safe_name})/XCConfigurationList/XCBuildConfiguration(Debug)
PBXProject(#{@spec_safe_name})/XCConfigurationList/XCBuildConfiguration(Release)
].sorted_md5s
PBXProject(#{@spec_safe_name})/XCConfigurationList/XCBuildConfiguration(Release)
]).sorted_md5s
end

it 'generates UUIDs for build configurations' do
Expand Down

0 comments on commit d641e81

Please sign in to comment.