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
94e38a9a
Unverified
Commit
94e38a9a
authored
Jul 27, 2017
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the specs to pass both when running in & out of a TTY
parent
a7fdc3d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
resolver_spec.rb
spec/unit/resolver_spec.rb
+15
-15
No files found.
spec/unit/resolver_spec.rb
View file @
94e38a9a
...
@@ -349,12 +349,12 @@ module Pod
...
@@ -349,12 +349,12 @@ module Pod
end
end
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
empty_graph
,
config
.
sources_manager
.
all
)
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
empty_graph
,
config
.
sources_manager
.
all
)
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
Informative
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
Informative
e
.
message
.
should
==
<<-
EOS
.
strip
e
.
message
.
should
.
include
<<-
EOS
.
strip
\e
[31m
[!] CocoaPods could not find compatible versions for pod "JSONKit":
[!] CocoaPods could not find compatible versions for pod "JSONKit":
In Podfile:
In Podfile:
JSONKit (= 1.4)
JSONKit (= 1.4)
JSONKit (= 1.5pre)
\e
[0m
JSONKit (= 1.5pre)
EOS
EOS
end
end
...
@@ -366,15 +366,15 @@ module Pod
...
@@ -366,15 +366,15 @@ module Pod
end
end
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
empty_graph
,
config
.
sources_manager
.
all
)
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
empty_graph
,
config
.
sources_manager
.
all
)
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
Informative
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
Informative
e
.
message
.
should
==
<<-
EOS
.
strip
e
.
message
.
should
.
include
<<-
EOS
.
strip
\e
[31m
[!] CocoaPods could not find compatible versions for pod "AFNetworking":
[!] CocoaPods could not find compatible versions for pod "AFNetworking":
In Podfile:
In Podfile:
AFNetworking (> 2)
AFNetworking (> 2)
RestKit (= 0.23.3) was resolved to 0.23.3, which depends on
RestKit (= 0.23.3) was resolved to 0.23.3, which depends on
RestKit/Core (= 0.23.3) was resolved to 0.23.3, which depends on
RestKit/Core (= 0.23.3) was resolved to 0.23.3, which depends on
RestKit/Network (= 0.23.3) was resolved to 0.23.3, which depends on
RestKit/Network (= 0.23.3) was resolved to 0.23.3, which depends on
AFNetworking (~> 1.3.0)
\e
[0m
AFNetworking (~> 1.3.0)
EOS
EOS
end
end
...
@@ -385,8 +385,8 @@ module Pod
...
@@ -385,8 +385,8 @@ module Pod
end
end
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
empty_graph
,
config
.
sources_manager
.
all
)
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
empty_graph
,
config
.
sources_manager
.
all
)
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
NoSpecFoundError
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
NoSpecFoundError
e
.
message
.
should
==
<<-
EOS
.
strip
e
.
message
.
should
.
include
<<-
EOS
.
strip
\e
[31m
[!] CocoaPods could not find compatible versions for pod "AFNetworking":
[!] CocoaPods could not find compatible versions for pod "AFNetworking":
In Podfile:
In Podfile:
AFNetworking (= 999.999.999)
AFNetworking (= 999.999.999)
...
@@ -397,7 +397,7 @@ You have either:
...
@@ -397,7 +397,7 @@ You have either:
* mistyped the name or version.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
\e
[0m
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
EOS
EOS
e
.
exit_status
.
should
.
equal
(
31
)
e
.
exit_status
.
should
.
equal
(
31
)
end
end
...
@@ -410,8 +410,8 @@ Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by
...
@@ -410,8 +410,8 @@ Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
empty_graph
,
config
.
sources_manager
.
all
)
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
empty_graph
,
config
.
sources_manager
.
all
)
resolver
.
specs_updated
=
true
resolver
.
specs_updated
=
true
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
NoSpecFoundError
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
NoSpecFoundError
e
.
message
.
should
==
<<-
EOS
.
strip
e
.
message
.
should
.
include
<<-
EOS
.
strip
\e
[31m
[!] CocoaPods could not find compatible versions for pod "AFNetworking":
[!] CocoaPods could not find compatible versions for pod "AFNetworking":
In Podfile:
In Podfile:
AFNetworking (= 999.999.999)
AFNetworking (= 999.999.999)
...
@@ -421,7 +421,7 @@ You have either:
...
@@ -421,7 +421,7 @@ You have either:
* mistyped the name or version.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
\e
[0m
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
EOS
EOS
e
.
exit_status
.
should
.
equal
(
31
)
e
.
exit_status
.
should
.
equal
(
31
)
end
end
...
@@ -435,8 +435,8 @@ Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by
...
@@ -435,8 +435,8 @@ Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
locked_deps
,
config
.
sources_manager
.
all
)
resolver
=
Resolver
.
new
(
config
.
sandbox
,
podfile
,
locked_deps
,
config
.
sources_manager
.
all
)
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
NoSpecFoundError
e
=
lambda
{
resolver
.
resolve
}.
should
.
raise
NoSpecFoundError
e
.
message
.
should
==
<<-
EOS
.
strip
e
.
message
.
should
.
include
<<-
EOS
.
strip
\e
[31m
[!] CocoaPods could not find compatible versions for pod "AFNetworking":
[!] CocoaPods could not find compatible versions for pod "AFNetworking":
In snapshot (Podfile.lock):
In snapshot (Podfile.lock):
AFNetworking (= 1.4)
AFNetworking (= 1.4)
...
@@ -450,7 +450,7 @@ You have either:
...
@@ -450,7 +450,7 @@ You have either:
* mistyped the name or version.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
\e
[0m
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
EOS
EOS
e
.
exit_status
.
should
.
equal
(
31
)
e
.
exit_status
.
should
.
equal
(
31
)
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