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