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
28b1e0f9
Commit
28b1e0f9
authored
Mar 09, 2012
by
Ben Scheirman
Committed by
Eloy Duran
Apr 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test informative messages for missing or invalid xcodeproj
parent
34537051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
install_command_spec.rb
spec/unit/install_command_spec.rb
+16
-0
No files found.
spec/unit/install_command_spec.rb
View file @
28b1e0f9
...
@@ -23,6 +23,14 @@ describe "Pod::Command::Install" do
...
@@ -23,6 +23,14 @@ describe "Pod::Command::Install" do
it
"raises an informative error"
do
it
"raises an informative error"
do
should
.
raise
(
Pod
::
Informative
)
{
@installer
.
run
}
should
.
raise
(
Pod
::
Informative
)
{
@installer
.
run
}
end
end
it
"should include an informative message"
do
begin
@installer
.
run
rescue
Pod
::
Informative
=>
err
err
.
message
.
should
.
match
/xcodeproj 'path\/to\/project\.xcodeproj/
end
end
end
end
describe
"When the Podfile specifies xcodeproj to an invalid path"
do
describe
"When the Podfile specifies xcodeproj to an invalid path"
do
...
@@ -35,6 +43,14 @@ describe "Pod::Command::Install" do
...
@@ -35,6 +43,14 @@ describe "Pod::Command::Install" do
should
.
raise
(
Pod
::
Informative
)
{
@installer
.
run
}
should
.
raise
(
Pod
::
Informative
)
{
@installer
.
run
}
end
end
it
"should include an informative message"
do
begin
@installer
.
run
rescue
Pod
::
Informative
=>
err
err
.
message
.
should
.
match
/The specified project `nonexistent\/project\.xcodeproj'/
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