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
ee31c98e
Commit
ee31c98e
authored
Feb 20, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #806 from petergoldstein/feature/fix_whether_typos
Fix a few typos in the test messages
parents
77f3b857
003ee24e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
git_spec.rb
spec/functional/downloader/git_spec.rb
+3
-3
downloader_spec.rb
spec/functional/downloader_spec.rb
+4
-4
podfile_spec.rb
spec/unit/podfile_spec.rb
+2
-2
version_spec.rb
spec/unit/version_spec.rb
+1
-1
No files found.
spec/functional/downloader/git_spec.rb
View file @
ee31c98e
...
@@ -8,7 +8,7 @@ module Pod
...
@@ -8,7 +8,7 @@ module Pod
@pod
=
LocalPod
.
new
(
fixture_spec
(
'banana-lib/BananaLib.podspec'
),
temporary_sandbox
,
Platform
.
ios
)
@pod
=
LocalPod
.
new
(
fixture_spec
(
'banana-lib/BananaLib.podspec'
),
temporary_sandbox
,
Platform
.
ios
)
end
end
it
"check
'
s out a specific commit"
do
it
"checks out a specific commit"
do
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
:git
=>
fixture
(
'banana-lib'
),
:commit
=>
'fd56054'
:git
=>
fixture
(
'banana-lib'
),
:commit
=>
'fd56054'
)
)
...
@@ -18,7 +18,7 @@ module Pod
...
@@ -18,7 +18,7 @@ module Pod
(
@pod
.
root
+
'README'
).
read
.
strip
.
should
==
'first commit'
(
@pod
.
root
+
'README'
).
read
.
strip
.
should
==
'first commit'
end
end
it
"check
'
s out a specific branch"
do
it
"checks out a specific branch"
do
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
:git
=>
fixture
(
'banana-lib'
),
:branch
=>
'topicbranch'
:git
=>
fixture
(
'banana-lib'
),
:branch
=>
'topicbranch'
)
)
...
@@ -28,7 +28,7 @@ module Pod
...
@@ -28,7 +28,7 @@ module Pod
(
@pod
.
root
+
'README'
).
read
.
strip
.
should
==
'topicbranch'
(
@pod
.
root
+
'README'
).
read
.
strip
.
should
==
'topicbranch'
end
end
it
"check
'
s out a specific tag"
do
it
"checks out a specific tag"
do
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
:git
=>
fixture
(
'banana-lib'
),
:tag
=>
'v1.0'
:git
=>
fixture
(
'banana-lib'
),
:tag
=>
'v1.0'
)
)
...
...
spec/functional/downloader_spec.rb
View file @
ee31c98e
...
@@ -7,7 +7,7 @@ module Pod
...
@@ -7,7 +7,7 @@ module Pod
end
end
describe
"for Mercurial"
do
describe
"for Mercurial"
do
it
"check
'
s out a specific revision"
do
it
"checks out a specific revision"
do
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
:hg
=>
fixture
(
'mercurial-repo'
),
:revision
=>
'46198bb3af96'
:hg
=>
fixture
(
'mercurial-repo'
),
:revision
=>
'46198bb3af96'
)
)
...
@@ -27,7 +27,7 @@ module Pod
...
@@ -27,7 +27,7 @@ module Pod
describe
"for Subversion"
do
describe
"for Subversion"
do
it
"check
'
s out a specific revision"
do
it
"checks out a specific revision"
do
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
:svn
=>
"file://
#{
fixture
(
'subversion-repo'
)
}
"
,
:revision
=>
'1'
:svn
=>
"file://
#{
fixture
(
'subversion-repo'
)
}
"
,
:revision
=>
'1'
)
)
...
@@ -36,7 +36,7 @@ module Pod
...
@@ -36,7 +36,7 @@ module Pod
(
@pod
.
root
+
'README'
).
read
.
strip
.
should
==
'first commit'
(
@pod
.
root
+
'README'
).
read
.
strip
.
should
==
'first commit'
end
end
it
"check
'
s out a specific tag"
do
it
"checks out a specific tag"
do
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
:svn
=>
"file://
#{
fixture
(
'subversion-repo'
)
}
"
,
:tag
=>
'tag-1'
:svn
=>
"file://
#{
fixture
(
'subversion-repo'
)
}
"
,
:tag
=>
'tag-1'
)
)
...
@@ -45,7 +45,7 @@ module Pod
...
@@ -45,7 +45,7 @@ module Pod
(
@pod
.
root
+
'README'
).
read
.
strip
.
should
==
'tag 1'
(
@pod
.
root
+
'README'
).
read
.
strip
.
should
==
'tag 1'
end
end
it
"check
'
s out the head version"
do
it
"checks out the head version"
do
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
@pod
.
top_specification
.
stubs
(
:source
).
returns
(
:svn
=>
"file://
#{
fixture
(
'subversion-repo'
)
}
"
,
:revision
=>
'1'
:svn
=>
"file://
#{
fixture
(
'subversion-repo'
)
}
"
,
:revision
=>
'1'
)
)
...
...
spec/unit/podfile_spec.rb
View file @
ee31c98e
...
@@ -142,7 +142,7 @@ describe "Pod::Podfile" do
...
@@ -142,7 +142,7 @@ describe "Pod::Podfile" do
end
end
describe
"concerning targets (dependency groups)"
do
describe
"concerning targets (dependency groups)"
do
it
"returns wether or not a target has any dependencies"
do
it
"returns w
h
ether or not a target has any dependencies"
do
Pod
::
Podfile
.
new
do
Pod
::
Podfile
.
new
do
end
.
target_definitions
[
:default
].
should
.
be
.
empty
end
.
target_definitions
[
:default
].
should
.
be
.
empty
Pod
::
Podfile
.
new
do
Pod
::
Podfile
.
new
do
...
@@ -291,7 +291,7 @@ describe "Pod::Podfile" do
...
@@ -291,7 +291,7 @@ describe "Pod::Podfile" do
@podfile
.
target_definitions
[
:nested_osx_target
].
should
.
not
.
be
.
exclusive
@podfile
.
target_definitions
[
:nested_osx_target
].
should
.
not
.
be
.
exclusive
end
end
it
"returns the specified configurations and wether it should be based on a debug or a release build"
do
it
"returns the specified configurations and w
h
ether it should be based on a debug or a release build"
do
Pod
::
Podfile
::
UserProject
.
any_instance
.
stubs
(
:project
)
Pod
::
Podfile
::
UserProject
.
any_instance
.
stubs
(
:project
)
all
=
{
'Release'
=>
:release
,
'Debug'
=>
:debug
,
'Test'
=>
:debug
}
all
=
{
'Release'
=>
:release
,
'Debug'
=>
:debug
,
'Test'
=>
:debug
}
@podfile
.
target_definitions
[
:default
].
user_project
.
build_configurations
.
should
==
all
.
merge
(
'iOS App Store'
=>
:release
)
@podfile
.
target_definitions
[
:default
].
user_project
.
build_configurations
.
should
==
all
.
merge
(
'iOS App Store'
=>
:release
)
...
...
spec/unit/version_spec.rb
View file @
ee31c98e
...
@@ -2,7 +2,7 @@ require File.expand_path('../../spec_helper', __FILE__)
...
@@ -2,7 +2,7 @@ require File.expand_path('../../spec_helper', __FILE__)
module
Pod
module
Pod
describe
Version
do
describe
Version
do
it
"returns wether or not it's a `bleeding edge' version"
do
it
"returns w
h
ether or not it's a `bleeding edge' version"
do
version
=
Version
.
new
(
'1.2.3'
)
version
=
Version
.
new
(
'1.2.3'
)
version
.
should
.
not
.
be
.
head
version
.
should
.
not
.
be
.
head
version
.
head
=
true
version
.
head
=
true
...
...
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