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
ea67c41e
Commit
ea67c41e
authored
Apr 29, 2016
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5223 from CocoaPods/mr-spec-cleanup
[Spec] Spring-cleaning of the test harness
parents
c46f5349
159d39fe
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
32 deletions
+12
-32
Dangerfile
Dangerfile
+3
-2
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
spec_spec.rb
spec/functional/command/spec_spec.rb
+0
-9
integration.rb
spec/integration.rb
+6
-0
analyzer_spec.rb
spec/unit/installer/analyzer_spec.rb
+0
-9
installer_spec.rb
spec/unit/installer_spec.rb
+2
-11
No files found.
Dangerfile
View file @
ea67c41e
# Don't let testing shortcuts get into master by accident
# Don't let testing shortcuts get into master by accident
(modified_files + added_files - %w(Dangerfile)).each do |file|
(modified_files + added_files - %w(Dangerfile)).each do |file|
next unless File.file?(file)
contents = File.read(file)
contents = File.read(file)
if file.start_with?('spec')
if file.start_with?('spec')
fail("`
fit` left in tests (#{file})") if contents =~ /f
it/
fail("`
xit` or `fit` left in tests (#{file})") if contents =~ /^\w*[xf]
it/
fail("`fdescribe` left in tests (#{file})") if contents =~ /fdescribe/
fail("`fdescribe` left in tests (#{file})") if contents =~ /
^\w*
fdescribe/
end
end
end
end
cocoapods-integration-specs
@
07d160f7
Subproject commit
8d4899ef3b44bd476cd887a2d984b36bcf30529d
Subproject commit
07d160f7734a019b1b93d3a2eed2d8b26d6baf5b
spec/functional/command/spec_spec.rb
View file @
ea67c41e
...
@@ -214,15 +214,6 @@ module Pod
...
@@ -214,15 +214,6 @@ module Pod
end
end
end
end
# @todo VCR is required in CocoaPods only for this test.
xit
'lints a remote podspec'
do
Dir
.
chdir
(
fixture
(
'spec-repos'
)
+
'master/Specs/JSONKit/1.4/'
)
do
cmd
=
command
(
'spec'
,
'lint'
,
'--quick'
,
'--allow-warnings'
,
'--silent'
,
'https://github.com/CocoaPods/Specs/raw/master/A2DynamicDelegate/2.0.1/A2DynamicDelegate.podspec'
)
# VCR.use_cassette('linter', :record => :new_episodes) { }
lambda
{
cmd
.
run
}.
should
.
not
.
raise
end
end
before
do
before
do
text
=
(
fixture
(
'spec-repos'
)
+
'master/Specs/JSONKit/1.4/JSONKit.podspec.json'
).
read
text
=
(
fixture
(
'spec-repos'
)
+
'master/Specs/JSONKit/1.4/JSONKit.podspec.json'
).
read
text
.
gsub!
(
/.*license.*/
,
'"license": { "file": "LICENSE" },'
)
text
.
gsub!
(
/.*license.*/
,
'"license": { "file": "LICENSE" },'
)
...
...
spec/integration.rb
View file @
ea67c41e
...
@@ -317,6 +317,12 @@ describe_cli 'pod' do
...
@@ -317,6 +317,12 @@ describe_cli 'pod' do
behaves_like
cli_spec
'spec_lint'
,
behaves_like
cli_spec
'spec_lint'
,
'spec lint --quick'
'spec lint --quick'
end
end
describe
'Lints a remote Pod'
do
spec_url
=
'https://github.com/CocoaPods/Specs/raw/master/Specs/A2DynamicDelegate/2.0.2/A2DynamicDelegate.podspec.json'
behaves_like
cli_spec
'spec_lint_remote'
,
"spec lint --quick --allow-warnings --silent
#{
spec_url
}
"
end
end
end
#--------------------------------------#
#--------------------------------------#
...
...
spec/unit/installer/analyzer_spec.rb
View file @
ea67c41e
...
@@ -564,15 +564,6 @@ module Pod
...
@@ -564,15 +564,6 @@ module Pod
]
]
end
end
xit
'removes the specifications of the changed pods to prevent confusion in the resolution process'
do
@analyzer
.
allow_pre_downloads
=
true
podspec
=
@analyzer
.
sandbox
.
root
+
'Local Podspecs/JSONKit.podspec'
podspec
.
dirname
.
mkpath
File
.
open
(
podspec
,
'w'
)
{
|
f
|
f
.
puts
(
'test'
)
}
@analyzer
.
analyze
podspec
.
should
.
not
.
exist?
end
it
'adds the specifications to the correspondent libraries'
do
it
'adds the specifications to the correspondent libraries'
do
@analyzer
.
analyze
.
targets
[
0
].
pod_targets
.
map
(
&
:specs
).
flatten
.
map
(
&
:to_s
).
should
==
[
@analyzer
.
analyze
.
targets
[
0
].
pod_targets
.
map
(
&
:specs
).
flatten
.
map
(
&
:to_s
).
should
==
[
'AFNetworking (1.0.1)'
,
'AFNetworking (1.0.1)'
,
...
...
spec/unit/installer_spec.rb
View file @
ea67c41e
...
@@ -633,10 +633,10 @@ module Pod
...
@@ -633,10 +633,10 @@ module Pod
@installer
.
send
(
:install_libraries
)
@installer
.
send
(
:install_libraries
)
end
end
x
it
'adds the frameworks required by to the pod to the project for informative purposes'
do
it
'adds the frameworks required by to the pod to the project for informative purposes'
do
Specification
::
Consumer
.
any_instance
.
stubs
(
:frameworks
).
returns
([
'QuartzCore'
])
Specification
::
Consumer
.
any_instance
.
stubs
(
:frameworks
).
returns
([
'QuartzCore'
])
@installer
.
install!
@installer
.
install!
names
=
@installer
.
sandbox
.
project
[
'Frameworks'
].
children
.
map
(
&
:name
)
names
=
@installer
.
sandbox
.
project
[
'Frameworks'
]
[
'iOS'
]
.
children
.
map
(
&
:name
)
names
.
sort
.
should
==
[
'Foundation.framework'
,
'QuartzCore.framework'
]
names
.
sort
.
should
==
[
'Foundation.framework'
,
'QuartzCore.framework'
]
end
end
end
end
...
@@ -723,15 +723,6 @@ module Pod
...
@@ -723,15 +723,6 @@ module Pod
@installer
.
send
(
:set_target_dependencies
)
@installer
.
send
(
:set_target_dependencies
)
end
.
should
.
not
.
raise
NoMethodError
end
.
should
.
not
.
raise
NoMethodError
end
end
xit
'sets the pod targets as dependencies of the aggregate target'
do
end
xit
'sets the dependecies of the pod targets'
do
end
xit
'is robusts against subspecs'
do
end
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