Commit db8f6653 authored by Marius Rackwitz's avatar Marius Rackwitz Committed by AliSoftware

[Spec] Expect files and dirs from asset catalog

parent 67428abc
......@@ -188,6 +188,7 @@ module Pod
'Pods/BananaLib/Classes/BananaTrace.d',
'Pods/BananaLib/LICENSE',
'Pods/BananaLib/README',
'Pods/BananaLib/Resources/Images.xcassets',
'Pods/BananaLib/Resources/logo-sidebar.png',
'Pods/BananaLib/Resources/sub_dir',
'Pods/BananaLib/libBananalib.a',
......@@ -216,6 +217,7 @@ module Pod
'Pods/BananaLib/Classes/BananaPrivate.h',
'Pods/BananaLib/LICENSE',
'Pods/BananaLib/README',
'Pods/BananaLib/Resources/Images.xcassets',
'Pods/BananaLib/Resources/logo-sidebar.png',
'Pods/BananaLib/Resources/sub_dir',
'Pods/BananaLib/libBananalib.a',
......
......@@ -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',
]
......
......@@ -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
)
......
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