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
5a6c8391
Commit
5a6c8391
authored
Feb 16, 2014
by
Kyle Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Repo remove] Improve test coverage
parent
88e5a85a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
repo_spec.rb
spec/functional/command/repo_spec.rb
+8
-0
No files found.
spec/functional/command/repo_spec.rb
View file @
5a6c8391
...
@@ -96,6 +96,14 @@ module Pod
...
@@ -96,6 +96,14 @@ module Pod
config
.
repos_dir
=
SpecHelper
.
tmp_repos_path
config
.
repos_dir
=
SpecHelper
.
tmp_repos_path
end
end
it
"complains when a repository name is missing"
do
lambda
{
run_command
(
'repo'
,
'remove'
)
}.
should
.
raise
CLAide
::
Help
end
it
"complains if the repository doesn't exist"
do
lambda
{
run_command
(
'repo'
,
'remove'
,
'nonexistant'
)
}.
should
.
raise
CLAide
::
Help
end
it
"removes a spec-repo"
do
it
"removes a spec-repo"
do
upstream
=
SpecHelper
.
temporary_directory
+
'upstream'
upstream
=
SpecHelper
.
temporary_directory
+
'upstream'
FileUtils
.
cp_r
(
test_repo_path
,
upstream
)
FileUtils
.
cp_r
(
test_repo_path
,
upstream
)
...
...
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