Commit 6010c8a5 authored by Marius Rackwitz's avatar Marius Rackwitz Committed by Samuel E. Giddins

[Spec] Expect files and dirs from asset catalog

parent 0117fd9b
......@@ -100,6 +100,7 @@ module Pod
it 'returns the resources' do
@accessor.resources.sort.should == [
@root + 'Resources/Images.xcassets',
@root + 'Resources/logo-sidebar.png',
@root + 'Resources/sub_dir',
]
......@@ -138,6 +139,7 @@ module Pod
@spec_consumer.stubs(:resource_bundles).returns('BananaLib' => 'Resources/*')
resource_paths = [
@root + 'Resources/logo-sidebar.png',
@root + 'Resources/Images.xcassets',
@root + 'Resources/sub_dir',
]
@accessor.resource_bundles.should == { 'BananaLib' => resource_paths }
......@@ -147,6 +149,7 @@ module Pod
@spec_consumer.stubs(:resource_bundles).returns('BananaLib' => 'Resources/*')
resource_paths = [
@root + 'Resources/logo-sidebar.png',
@root + 'Resources/Images.xcassets',
@root + 'Resources/sub_dir',
]
@accessor.resource_bundle_files.should == resource_paths
......
......@@ -21,6 +21,8 @@ module Pod
Classes/BananaPrivate.h
Classes/BananaTrace.d
README
Resources/Images.xcassets/Logo.imageset/Contents.json
Resources/Images.xcassets/Logo.imageset/logo.png
Resources/logo-sidebar.png
Resources/sub_dir/logo-sidebar.png
libBananalib.a
......@@ -45,6 +47,8 @@ module Pod
Bananalib.framework/Versions/Current
Classes
Resources
Resources/Images.xcassets
Resources/Images.xcassets/Logo.imageset
Resources/sub_dir
sub-dir
sub-dir/sub-dir-2
......@@ -127,6 +131,7 @@ module Pod
it 'can optionally include the directories in the results' do
paths = @path_list.relative_glob('Resources/*', :include_dirs => true).map(&:to_s)
paths.sort.should == %w(
Resources/Images.xcassets
Resources/logo-sidebar.png
Resources/sub_dir
)
......
......@@ -42,6 +42,7 @@ module Pod
'Classes/BananaTrace.d',
'LICENSE',
'README',
'Resources/Images.xcassets',
'Resources/logo-sidebar.png',
'Resources/sub_dir',
'libBananalib.a',
......@@ -69,6 +70,7 @@ module Pod
'Classes/BananaPrivate.h',
'LICENSE',
'README',
'Resources/Images.xcassets',
'Resources/logo-sidebar.png',
'Resources/sub_dir',
'libBananalib.a',
......
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