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
3cdf7fcc
Commit
3cdf7fcc
authored
Mar 19, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specs] Robustness
parent
76a05b12
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
search_spec.rb
spec/functional/command/search_spec.rb
+0
-1
pre_flight.rb
spec/spec_helper/pre_flight.rb
+3
-0
user_project_integrator_spec.rb
spec/unit/installer/user_project_integrator_spec.rb
+3
-3
sources_manager_spec.rb
spec/unit/sources_manager_spec.rb
+0
-1
No files found.
spec/functional/command/search_spec.rb
View file @
3cdf7fcc
...
@@ -7,7 +7,6 @@ module Pod
...
@@ -7,7 +7,6 @@ module Pod
before
do
before
do
@test_source
=
Source
.
new
(
fixture
(
'spec-repos/test_repo'
))
@test_source
=
Source
.
new
(
fixture
(
'spec-repos/test_repo'
))
SourcesManager
.
stubs
(
:search_index_path
).
returns
(
temporary_directory
+
'search_index.yaml'
)
Source
::
Aggregate
.
any_instance
.
stubs
(
:all
).
returns
([
@test_source
])
Source
::
Aggregate
.
any_instance
.
stubs
(
:all
).
returns
([
@test_source
])
end
end
...
...
spec/spec_helper/pre_flight.rb
View file @
3cdf7fcc
...
@@ -26,6 +26,9 @@ module Bacon
...
@@ -26,6 +26,9 @@ module Bacon
SpecHelper
.
temporary_directory
.
rmtree
if
SpecHelper
.
temporary_directory
.
exist?
SpecHelper
.
temporary_directory
.
rmtree
if
SpecHelper
.
temporary_directory
.
exist?
SpecHelper
.
temporary_directory
.
mkpath
SpecHelper
.
temporary_directory
.
mkpath
# TODO
::
Pod
::
SourcesManager
.
stubs
(
:search_index_path
).
returns
(
temporary_directory
+
'search_index.yaml'
)
old_run_requirement
.
bind
(
self
).
call
(
description
,
spec
)
old_run_requirement
.
bind
(
self
).
call
(
description
,
spec
)
end
end
end
end
...
...
spec/unit/installer/user_project_integrator_spec.rb
View file @
3cdf7fcc
...
@@ -125,9 +125,9 @@ module Pod
...
@@ -125,9 +125,9 @@ module Pod
describe
"Private Helpers"
do
describe
"Private Helpers"
do
it
"uses the path of the workspace defined in the podfile"
do
it
"uses the path of the workspace defined in the podfile"
do
path
=
Pathname
.
new
(
"a_path"
)
path
=
"a_path"
@podfile
.
workspace
(
path
.
to_s
)
@podfile
.
workspace
(
path
)
@integrator
.
send
(
:workspace_path
).
should
==
path
.
sub_ext
(
".xcworkspace"
)
@integrator
.
send
(
:workspace_path
).
should
==
Pathname
.
new
(
path
+
".xcworkspace"
)
end
end
it
"names the workspace after the user project if needed"
do
it
"names the workspace after the user project if needed"
do
...
...
spec/unit/sources_manager_spec.rb
View file @
3cdf7fcc
...
@@ -5,7 +5,6 @@ module Pod
...
@@ -5,7 +5,6 @@ module Pod
before
do
before
do
@test_source
=
Source
.
new
(
fixture
(
'spec-repos/test_repo'
))
@test_source
=
Source
.
new
(
fixture
(
'spec-repos/test_repo'
))
SourcesManager
.
stubs
(
:search_index_path
).
returns
(
temporary_directory
+
'search_index.yaml'
)
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