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
7362964c
Commit
7362964c
authored
Oct 23, 2016
by
Ben Asher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unit specs
parent
fb758c97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
aggregate_xcconfig_spec.rb
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
+4
-4
No files found.
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
View file @
7362964c
...
...
@@ -272,17 +272,17 @@ module Pod
@generator
.
generate
.
to_hash
[
'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'
].
should
==
'YES'
end
it
'
sets ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to NO
when there is no swift'
do
it
'
does not set ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
when there is no swift'
do
@generator
.
send
(
:pod_targets
).
first
.
stubs
(
:uses_swift?
).
returns
(
false
)
@generator
.
stubs
(
:target_swift_version
).
returns
(
nil
)
@generator
.
generate
.
to_hash
[
'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'
].
should
==
'NO'
@generator
.
generate
.
to_hash
[
'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'
].
nil?
.
should
==
true
end
it
'
sets ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to NO
when there is swift, but the target is an extension'
do
it
'
does not set ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
when there is swift, but the target is an extension'
do
@target
.
stubs
(
:requires_host_target?
).
returns
(
true
)
@generator
.
stubs
(
:target_swift_version
).
returns
(
'2.3'
)
@generator
.
send
(
:pod_targets
).
first
.
stubs
(
:uses_swift?
).
returns
(
true
)
@generator
.
generate
.
to_hash
[
'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'
].
should
==
'NO'
@generator
.
generate
.
to_hash
[
'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'
].
nil?
.
should
==
true
end
it
'does not set EMBEDDED_CONTENT_CONTAINS_SWIFT when there is swift 2.3 or higher'
do
...
...
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