Commit 068aa170 authored by Kyle Fuller's avatar Kyle Fuller

Test scoped header store per platform

For #1249
parent be84c8df
...@@ -180,6 +180,7 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -180,6 +180,7 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
* Proper scoping of header search paths to the target platform. * Proper scoping of header search paths to the target platform.
[Michael Melanson](https://github.com/michaelmelanson) [Michael Melanson](https://github.com/michaelmelanson)
[Kyle Fuller](https://github.com/kylef)
[#1249](https://github.com/CocoaPods/CocoaPods/issues/1249) [#1249](https://github.com/CocoaPods/CocoaPods/issues/1249)
......
...@@ -46,5 +46,14 @@ module Pod ...@@ -46,5 +46,14 @@ module Pod
it 'always adds the Headers root to the header search paths' do it 'always adds the Headers root to the header search paths' do
@header_dir.search_paths(:fake_platform).should.include('${PODS_ROOT}/Headers/Public') @header_dir.search_paths(:fake_platform).should.include('${PODS_ROOT}/Headers/Public')
end end
it 'only exposes header search paths for the given platform' do
@header_dir.add_search_path('iOS Search Path', :ios)
@header_dir.add_search_path('OS X Search Path', :osx)
@header_dir.search_paths(:ios).sort.should == [
"${PODS_ROOT}/Headers/Public",
"${PODS_ROOT}/Headers/Public/iOS Search Path",
]
end
end end
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