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
9545c384
Commit
9545c384
authored
Dec 11, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1665 from carsonmcdonald/morecatcoverage
Add more test coverage for the spec cat command.
parents
47642ca3
aa7f0a50
Hide 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 @
9545c384
...
@@ -205,6 +205,17 @@ module Pod
...
@@ -205,6 +205,17 @@ module Pod
describe
Command
::
Spec
::
Cat
do
describe
Command
::
Spec
::
Cat
do
it_should_check_for_existence
(
"cat"
)
it_should_check_for_existence
(
"cat"
)
it_should_check_for_ambiguity
(
"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
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