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
e636acd8
Commit
e636acd8
authored
Sep 14, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create archives of git fixture repos.
parent
ff706d09
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
3 deletions
+12
-3
banana-lib
spec/fixtures/banana-lib
+0
-1
banana-lib.tar.gz
spec/fixtures/banana-lib.tar.gz
+0
-0
master-spec-repo.git
spec/fixtures/master-spec-repo.git
+0
-1
master-spec-repo.git.tar.gz
spec/fixtures/master-spec-repo.git.tar.gz
+0
-0
command_spec.rb
spec/functional/command_spec.rb
+4
-0
fixture.rb
spec/spec_helper/fixture.rb
+8
-1
No files found.
banana-lib
@
0d06750e
Subproject commit 0d06750e78e5a6653dc0f66776a257052328c146
spec/fixtures/banana-lib.tar.gz
0 → 100644
View file @
e636acd8
File added
master-spec-repo.git
@
c807c4a9
Subproject commit c807c4a9bff2af0ada17863065eb44bda0275a7d
spec/fixtures/master-spec-repo.git.tar.gz
0 → 100644
View file @
e636acd8
File added
spec/functional/command_spec.rb
View file @
e636acd8
...
...
@@ -7,6 +7,10 @@ describe "Pod::Command" do
extend
SpecHelper
::
Log
extend
SpecHelper
::
TemporaryDirectory
before
do
fixture
(
'master-spec-repo.git'
)
# ensure the archive is unpacked
end
it
"creates the local spec-repos directory and creates a clone of the `master' repo"
do
command
=
Pod
::
Command
.
parse
(
'setup'
)
def
command
.
master_repo_url
;
SpecHelper
.
fixture
(
'master-spec-repo.git'
);
end
...
...
spec/spec_helper/fixture.rb
View file @
e636acd8
...
...
@@ -7,7 +7,14 @@ module SpecHelper
ROOT
=
::
ROOT
+
'spec/fixtures'
def
fixture
(
name
)
ROOT
+
name
file
=
ROOT
+
name
unless
file
.
exist?
archive
=
Pathname
.
new
(
file
.
to_s
+
'.tar.gz'
)
if
archive
.
exist?
system
"cd '
#{
archive
.
dirname
}
' && tar -zxvf '
#{
archive
}
' > /dev/null 2>&1"
end
end
file
end
module_function
:fixture
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