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
61f54169
Commit
61f54169
authored
Jun 09, 2013
by
Ian Ynda-Hummel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a basic spec for the init subcommand.
parent
57abeabe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
init_spec.rb
spec/functional/command/init_spec.rb
+29
-0
No files found.
spec/functional/command/init_spec.rb
0 → 100644
View file @
61f54169
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
module
Pod
describe
Command
::
Init
do
it
"runs with no parameters"
do
lambda
{
run_command
(
'init'
)
}.
should
.
not
.
raise
CLAide
::
Help
end
it
"complains when given parameters"
do
lambda
{
run_command
(
'init'
,
'create'
)
}.
should
.
raise
CLAide
::
Help
lambda
{
run_command
(
'init'
,
'--create'
)
}.
should
.
raise
CLAide
::
Help
lambda
{
run_command
(
'init'
,
'NAME'
)
}.
should
.
raise
CLAide
::
Help
lambda
{
run_command
(
'init'
,
'createa'
)
}.
should
.
raise
CLAide
::
Help
lambda
{
run_command
(
'init'
,
'agument1'
,
'2'
)
}.
should
.
raise
CLAide
::
Help
lambda
{
run_command
(
'init'
,
'which'
)
}.
should
.
raise
CLAide
::
Help
lambda
{
run_command
(
'init'
,
'cat'
)
}.
should
.
raise
CLAide
::
Help
lambda
{
run_command
(
'init'
,
'edit'
)
}.
should
.
raise
CLAide
::
Help
end
extend
SpecHelper
::
TemporaryRepos
it
"creates a Podfile"
do
run_command
(
'init'
)
path
=
temporary_directory
+
'Podfile'
File
.
exists?
(
path
).
should
==
true
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