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
d22251ee
Commit
d22251ee
authored
Sep 01, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FileAccessor] Add a spec for respecting the exclude_files for resource bundles
parent
777a1dc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
file_accessor_spec.rb
spec/unit/sandbox/file_accessor_spec.rb
+10
-0
No files found.
spec/unit/sandbox/file_accessor_spec.rb
View file @
d22251ee
...
@@ -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
...
...
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