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
bb911ddc
Commit
bb911ddc
authored
Sep 19, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specs] Fix repo specs.
parent
90174caa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
repo_spec.rb
spec/functional/command/repo_spec.rb
+1
-2
temporary_repos.rb
spec/spec_helper/temporary_repos.rb
+1
-1
No files found.
spec/functional/command/repo_spec.rb
View file @
bb911ddc
...
@@ -7,7 +7,6 @@ describe "Pod::Command::Repo" do
...
@@ -7,7 +7,6 @@ describe "Pod::Command::Repo" do
extend
SpecHelper
::
TemporaryRepos
extend
SpecHelper
::
TemporaryRepos
it
"runs with correct parameters"
do
it
"runs with correct parameters"
do
lambda
{
run_command
(
'repo'
,
'add'
,
'NAME'
,
'URL'
)
}.
should
.
not
.
raise
lambda
{
run_command
(
'repo'
,
'update'
)
}.
should
.
not
.
raise
lambda
{
run_command
(
'repo'
,
'update'
)
}.
should
.
not
.
raise
lambda
{
run_command
(
'repo'
,
'lint'
,
temporary_directory
.
to_s
)
}.
should
.
not
.
raise
lambda
{
run_command
(
'repo'
,
'lint'
,
temporary_directory
.
to_s
)
}.
should
.
not
.
raise
end
end
...
@@ -18,7 +17,7 @@ describe "Pod::Command::Repo" do
...
@@ -18,7 +17,7 @@ describe "Pod::Command::Repo" do
end
end
it
"adds a spec-repo"
do
it
"adds a spec-repo"
do
add_repo
(
'private'
,
fixture
(
'spec-repos/master'
))
run_command
(
'repo'
,
'add'
,
'private'
,
fixture
(
'spec-repos/master'
))
git_config
(
'private'
,
'remote.origin.url'
).
should
==
fixture
(
'spec-repos/master'
).
to_s
git_config
(
'private'
,
'remote.origin.url'
).
should
==
fixture
(
'spec-repos/master'
).
to_s
end
end
...
...
spec/spec_helper/temporary_repos.rb
View file @
bb911ddc
...
@@ -32,7 +32,7 @@ module SpecHelper
...
@@ -32,7 +32,7 @@ module SpecHelper
command
.
run
command
.
run
Dir
.
chdir
(
command
.
dir
)
do
Dir
.
chdir
(
command
.
dir
)
do
`git checkout -b test >/dev/null 2>&1`
`git checkout -b test >/dev/null 2>&1`
`git branch --set-upstream test origin/
test
>/dev/null 2>&1`
`git branch --set-upstream test origin/
master
>/dev/null 2>&1`
end
end
command
command
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