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
cbcb00b1
Commit
cbcb00b1
authored
Jan 28, 2013
by
Keith Smiley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding which tests
parent
f9a060bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
spec_spec.rb
spec/functional/command/spec_spec.rb
+27
-2
No files found.
spec/functional/command/spec_spec.rb
View file @
cbcb00b1
...
...
@@ -142,18 +142,43 @@ module Pod
end
end
#-------------------------------------------------------------------------#
describe
"which subcommand"
do
extend
SpecHelper
::
TemporaryRepos
it
"errors if a given podspec doesn't exist"
do
e
=
lambda
{
command
(
'spec'
,
'which'
,
'some_pod_that_doesnt_exist'
).
run
}.
should
.
raise
Informative
e
.
message
.
should
.
match
/Unable to find a pod with/
end
it
"prints the path of a given podspec"
do
lambda
{
command
(
'spec'
,
'which'
,
'kslabel'
).
run
}
# text = "AFNetworking.podspec"
# UI.output.should.include text
# output = UI.output
# puts UI.output
end
it
"complains provided spec name is ambigious"
do
e
=
lambda
{
command
(
'spec'
,
'cat'
,
'AF'
).
run
}.
should
.
raise
Informative
e
.
message
.
should
.
match
/More than one/
end
end
#-------------------------------------------------------------------------#
describe
"cat subcommand"
do
extend
SpecHelper
::
TemporaryRepos
it
"complains it cant't find a spec to read"
do
lambda
{
command
(
'spec'
,
'cat'
,
'not-exissting-spec'
).
run
}.
should
.
raise
Informative
e
=
lambda
{
command
(
'spec'
,
'cat'
,
'some_pod_that_doesnt_exist'
).
run
}.
should
.
raise
Informative
e
.
message
.
should
.
match
/Unable to find/
end
it
"complains provided spec name is ambigious"
do
e
=
lambda
{
command
(
'spec'
,
'cat'
,
'AF'
).
run
}.
should
.
raise
Informative
e
.
message
.
should
.
match
/More tha
t
one/
e
.
message
.
should
.
match
/More tha
n
one/
end
it
"prints the spec on standard output"
do
...
...
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