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
9ca341d3
Commit
9ca341d3
authored
Mar 10, 2016
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TargetInspector] Add a spec for when the SDKROOT is not set
parent
2f2c146d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
target_inspector_spec.rb
spec/unit/installer/analyzer/target_inspector_spec.rb
+13
-0
No files found.
spec/unit/installer/analyzer/target_inspector_spec.rb
View file @
9ca341d3
...
@@ -270,6 +270,19 @@ module Pod
...
@@ -270,6 +270,19 @@ module Pod
e
=
lambda
{
target_inspector
.
send
(
:compute_platform
,
user_targets
)
}.
should
.
raise
Informative
e
=
lambda
{
target_inspector
.
send
(
:compute_platform
,
user_targets
)
}.
should
.
raise
Informative
e
.
message
.
should
.
match
/Targets with different platforms/
e
.
message
.
should
.
match
/Targets with different platforms/
end
end
it
'raises if the platform cannot be inferred'
do
user_project
=
Xcodeproj
::
Project
.
new
(
'path'
)
target
=
user_project
.
new_target
(
:application
,
'Target'
,
:ios
)
target
.
build_configuration_list
.
set_setting
(
'SDKROOT'
,
nil
)
target_definition
=
Podfile
::
TargetDefinition
.
new
(
:default
,
nil
)
user_targets
=
[
target
]
target_inspector
=
TargetInspector
.
new
(
target_definition
,
config
.
installation_root
)
should
.
raise
(
Informative
)
{
target_inspector
.
send
(
:compute_platform
,
user_targets
)
}.
message
.
should
.
include
(
'Unable to determine the platform for the `default` target.'
)
end
end
end
end
end
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