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
9afec2a3
Commit
9afec2a3
authored
Apr 01, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make specs green.
parent
39e0a526
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
config.rb
lib/cocoapods/config.rb
+3
-1
config_spec.rb
spec/unit/config_spec.rb
+0
-7
No files found.
lib/cocoapods/config.rb
View file @
9afec2a3
...
@@ -46,7 +46,9 @@ module Pod
...
@@ -46,7 +46,9 @@ module Pod
# Returns the spec at the pat returned from `project_podfile`.
# Returns the spec at the pat returned from `project_podfile`.
def
rootspec
def
rootspec
@rootspec
||=
Podfile
.
from_file
(
project_podfile
)
@rootspec
||=
begin
Podfile
.
from_file
(
project_podfile
)
if
project_podfile
.
exist?
end
end
end
def
ios?
def
ios?
...
...
spec/unit/config_spec.rb
View file @
9afec2a3
...
@@ -32,13 +32,6 @@ describe "Pod::Config" do
...
@@ -32,13 +32,6 @@ describe "Pod::Config" do
end
end
end
end
it
"returns the path to an existing podspec file if a Podfile doesn't exist"
do
(
temporary_directory
+
'Bananas.podspec'
).
open
(
'w'
)
{
|
f
|
f
<<
'# Yo'
}
Dir
.
chdir
(
temporary_directory
)
do
config
.
project_podfile
.
should
==
Pathname
.
pwd
+
'Bananas.podspec'
end
end
it
"returns the path to the Pods directory that holds the dependencies"
do
it
"returns the path to the Pods directory that holds the dependencies"
do
config
.
project_pods_root
.
should
==
Pathname
.
pwd
+
'Pods'
config
.
project_pods_root
.
should
==
Pathname
.
pwd
+
'Pods'
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