Commit d22251ee authored by Samuel E. Giddins's avatar Samuel E. Giddins

[FileAccessor] Add a spec for respecting the exclude_files for resource bundles

parent 777a1dc2
...@@ -169,6 +169,16 @@ module Pod ...@@ -169,6 +169,16 @@ module Pod
@accessor.resource_bundle_files.should == resource_paths @accessor.resource_bundle_files.should == resource_paths
end end
it 'takes into account exclude_files when creating the resource bundles of the pod' do
@spec_consumer.stubs(:exclude_files).returns(['**/*.png'])
@spec_consumer.stubs(:resource_bundles).returns('BananaLib' => 'Resources/*')
resource_paths = [
@root + 'Resources/Images.xcassets',
@root + 'Resources/sub_dir',
]
@accessor.resource_bundles.should == { 'BananaLib' => resource_paths }
end
it 'returns the prefix header of the specification' do it 'returns the prefix header of the specification' do
@accessor.prefix_header.should == @root + 'Classes/BananaLib.pch' @accessor.prefix_header.should == @root + 'Classes/BananaLib.pch'
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