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
505f9395
Commit
505f9395
authored
Mar 24, 2018
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up specs to make failures more obvious
parent
ac1a9551
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
analyzer_spec.rb
spec/unit/installer/analyzer_spec.rb
+1
-1
resolver_spec.rb
spec/unit/resolver_spec.rb
+3
-3
No files found.
spec/unit/installer/analyzer_spec.rb
View file @
505f9395
...
...
@@ -713,7 +713,7 @@ module Pod
it
'does not include pod target if its used by tests only'
do
spec1
=
Resolver
::
ResolverSpecification
.
new
(
stub
,
true
,
nil
)
spec2
=
Resolver
::
ResolverSpecification
.
new
(
stub
,
true
,
nil
)
target_definition
=
stub
target_definition
=
stub
(
'TargetDefinition'
)
pod_target
=
stub
(
:name
=>
'Pod1'
,
:target_definitions
=>
[
target_definition
],
:specs
=>
[
spec1
.
spec
,
spec2
.
spec
])
resolver_specs_by_target
=
{
target_definition
=>
[
spec1
,
spec2
]
}
@analyzer
.
send
(
:filter_pod_targets_for_target_definition
,
target_definition
,
[
pod_target
],
resolver_specs_by_target
).
should
.
be
.
empty
...
...
spec/unit/resolver_spec.rb
View file @
505f9395
...
...
@@ -470,9 +470,9 @@ module Pod
spec_names
.
should
==
%w(
Expecta MainSpec MainSpec/Tests
)
resolved_specs
.
find
{
|
rs
|
rs
.
name
==
'Expecta'
}.
used_by_tests_only?
.
should
.
be
.
false
resolved_specs
.
find
{
|
rs
|
rs
.
name
==
'MainSpec'
}.
used_by_tests_only?
.
should
.
be
.
false
resolved_specs
.
find
{
|
rs
|
rs
.
name
==
'MainSpec/Tests'
}.
used_by_tests_only?
.
should
.
be
.
true
resolved_specs
.
find
{
|
rs
|
rs
.
name
==
'Expecta'
}.
should
.
not
.
be
.
used_by_tests_only
resolved_specs
.
find
{
|
rs
|
rs
.
name
==
'MainSpec'
}.
should
.
not
.
be
.
used_by_tests_only
resolved_specs
.
find
{
|
rs
|
rs
.
name
==
'MainSpec/Tests'
}.
should
.
be
.
used_by_tests_only
end
it
'allows pre-release spec versions when a requirement has an '
\
...
...
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