Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
6010c8a5
Commit
6010c8a5
authored
Apr 01, 2015
by
Marius Rackwitz
Committed by
Samuel E. Giddins
Apr 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Spec] Expect files and dirs from asset catalog
parent
0117fd9b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
file_accessor_spec.rb
spec/unit/sandbox/file_accessor_spec.rb
+3
-0
path_list_spec.rb
spec/unit/sandbox/path_list_spec.rb
+5
-0
pod_dir_cleaner_spec.rb
spec/unit/sandbox/pod_dir_cleaner_spec.rb
+2
-0
No files found.
spec/unit/sandbox/file_accessor_spec.rb
View file @
6010c8a5
...
@@ -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
...
...
spec/unit/sandbox/path_list_spec.rb
View file @
6010c8a5
...
@@ -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
)
)
...
...
spec/unit/sandbox/pod_dir_cleaner_spec.rb
View file @
6010c8a5
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment