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
3c7015a6
Commit
3c7015a6
authored
Jan 05, 2015
by
Hugo Tunius
Committed by
Kyle Fuller
Jan 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodspecSource Spec] Add spec for failing load of external HTTP podspec
parent
86211405
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
podspec_source_spec.rb
spec/unit/external_sources/podspec_source_spec.rb
+13
-0
No files found.
spec/unit/external_sources/podspec_source_spec.rb
View file @
3c7015a6
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
require
'webmock'
module
Pod
describe
ExternalSources
::
PodspecSource
do
...
...
@@ -52,5 +53,17 @@ module Pod
path
.
should
==
'http://www.example.com/Reachability.podspec'
end
end
describe
'http source'
do
it
'raises an Informative error if the specified url fails to load'
do
@subject
.
stubs
(
:params
).
returns
(
:podspec
=>
'https://github.com/username/TSMessages/TSMessages.podspec'
)
WebMock
::
API
.
stub_request
(
:get
,
'https://github.com/username/TSMessages/TSMessages.podspec'
).
to_return
(
:status
=>
404
)
lambda
{
@subject
.
fetch
(
config
.
sandbox
)
}.
should
.
raise
(
Informative
).
message
.
should
.
match
(
/Failed to fetch podspec for/
)
WebMock
.
reset!
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