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
34537051
Commit
34537051
authored
Mar 09, 2012
by
Ben Scheirman
Committed by
Eloy Duran
Apr 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise an informative error when Podfile specifies xcodeproj to an invalid path
parent
cd931998
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
install_command_spec.rb
spec/unit/install_command_spec.rb
+15
-3
No files found.
spec/unit/install_command_spec.rb
View file @
34537051
...
...
@@ -18,11 +18,23 @@ describe "Pod::Command::Install" do
describe
"When the Podfile does not specify the xcodeproject"
do
before
do
config
.
stubs
(
:rootspec
).
returns
(
Pod
::
Podfile
.
new
{
platform
:ios
;
dependency
'AFNetworking'
})
@installer
=
Pod
::
Command
::
Install
.
new
(
Pod
::
Command
::
ARGV
.
new
)
end
it
"raises an informative error if the xcodproj is not specified in the podfile"
do
installer
=
Pod
::
Command
::
Install
.
new
(
Pod
::
Command
::
ARGV
.
new
)
should
.
raise
(
Pod
::
Informative
)
{
installer
.
run
}
it
"raises an informative error"
do
should
.
raise
(
Pod
::
Informative
)
{
@installer
.
run
}
end
end
describe
"When the Podfile specifies xcodeproj to an invalid path"
do
before
do
config
.
stubs
(
:rootspec
).
returns
(
Pod
::
Podfile
.
new
{
platform
:ios
;
xcodeproj
'nonexistent/project.xcodeproj'
;
dependency
'AFNetworking'
})
@installer
=
Pod
::
Command
::
Install
.
new
(
Pod
::
Command
::
ARGV
.
new
)
end
it
"raises an informative error"
do
should
.
raise
(
Pod
::
Informative
)
{
@installer
.
run
}
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