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
aa7f0a50
Commit
aa7f0a50
authored
Dec 09, 2013
by
Carson McDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more test coverage for the spec cat command.
parent
47642ca3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec_spec.rb
spec/functional/command/spec_spec.rb
+11
-0
No files found.
spec/functional/command/spec_spec.rb
View file @
aa7f0a50
...
...
@@ -205,6 +205,17 @@ module Pod
describe
Command
::
Spec
::
Cat
do
it_should_check_for_existence
(
"cat"
)
it_should_check_for_ambiguity
(
"cat"
)
it
"cats the given podspec"
do
lambda
{
command
(
'spec'
,
'cat'
,
'AFNetworking'
).
run
}.
should
.
not
.
raise
UI
.
output
.
should
.
include
fixture
(
'spec-repos/master/AFNetworking/1.2.0/AFNetworking.podspec'
).
read
end
it
"cats the first podspec from all podspecs"
do
STDIN
=
StringIO
.
new
(
"1
\n
"
,
'r'
)
run_command
(
'spec'
,
'cat'
,
'--show-all'
,
'AFNetworking'
)
UI
.
output
.
should
.
include
fixture
(
'spec-repos/master/AFNetworking/1.2.0/AFNetworking.podspec'
).
read
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