Commit 8d6b012a authored by Swizzlr's avatar Swizzlr

Update unit tests and clean up generator code

parent 157bdb28
...@@ -49,7 +49,7 @@ module Pod ...@@ -49,7 +49,7 @@ module Pod
'OTHER_LDFLAGS' => XCConfigHelper.default_ld_flags(target), 'OTHER_LDFLAGS' => XCConfigHelper.default_ld_flags(target),
'PODS_ROOT' => target.relative_pods_root, 'PODS_ROOT' => target.relative_pods_root,
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) COCOAPODS=1', 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) COCOAPODS=1',
'OTHER_CFLAGS' => '$(inherited)' + XCConfigHelper.quote(header_search_path_flags) 'OTHER_CFLAGS' => '$(inherited) ' + XCConfigHelper.quote(header_search_path_flags)
}) })
target.pod_targets.each do |pod_target| target.pod_targets.each do |pod_target|
......
...@@ -55,13 +55,8 @@ module Pod ...@@ -55,13 +55,8 @@ module Pod
@xcconfig.to_hash['PODS_ROOT'].should == '${SRCROOT}/Pods' @xcconfig.to_hash['PODS_ROOT'].should == '${SRCROOT}/Pods'
end end
# it 'adds the sandbox public headers search paths to the xcconfig, with quotes' do
# expected = "\"#{config.sandbox.public_headers.search_paths.join('" "')}\""
# @xcconfig.to_hash['HEADER_SEARCH_PATHS'].should == expected
# end
it 'adds the sandbox public headers search paths to the xcconfig, with quotes, as system headers' do it 'adds the sandbox public headers search paths to the xcconfig, with quotes, as system headers' do
expected = "\"-isystem#{config.sandbox.public_headers.search_paths.join('" -isystem"')}\"" expected = "$(inherited) \"-isystem#{config.sandbox.public_headers.search_paths.join('" -isystem"')}\""
@xcconfig.to_hash['OTHER_CFLAGS'].should == expected @xcconfig.to_hash['OTHER_CFLAGS'].should == expected
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment