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 8f41009
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 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 @@ -68,7 +74,7 @@ def recursive_add_file(path)
PBXProject(#{@spec_safe_name})/XCConfigurationList
PBXProject(#{@spec_safe_name})/XCConfigurationList/XCBuildConfiguration(Debug)
PBXProject(#{@spec_safe_name})/XCConfigurationList/XCBuildConfiguration(Release)
].sorted_md5s
]).sorted_md5s
end

it 'generates UUIDs for build configurations' do
Expand Down

0 comments on commit 8f41009

Please sign in to comment.