Skip to content

Commit

Permalink
Test scoped header store per platform
Browse files Browse the repository at this point in the history
For #1249
  • Loading branch information
kylef committed Oct 28, 2014
1 parent be84c8d commit 068aa17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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.
[Michael Melanson](https://github.com/michaelmelanson)
[Kyle Fuller](https://github.com/kylef)
[#1249](https://github.com/CocoaPods/CocoaPods/issues/1249)


Expand Down
9 changes: 9 additions & 0 deletions spec/unit/sandbox/headers_store_spec.rb
Expand Up @@ -46,5 +46,14 @@ module Pod
it 'always adds the Headers root to the header search paths' do
@header_dir.search_paths(:fake_platform).should.include('${PODS_ROOT}/Headers/Public')
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

0 comments on commit 068aa17

Please sign in to comment.