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
65877b65
Commit
65877b65
authored
Sep 27, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodTargetInstaller] Update specs for not setting the dylib version settings
parent
4f387372
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
43 deletions
+0
-43
pod_target_installer_spec.rb
...t/installer/target_installer/pod_target_installer_spec.rb
+0
-43
No files found.
spec/unit/installer/target_installer/pod_target_installer_spec.rb
View file @
65877b65
...
...
@@ -295,49 +295,6 @@ module Pod
end
end
end
#--------------------------------------------------------------------------------#
describe
'concerning framework versions'
do
before
do
@pod_target
.
stubs
(
:requires_frameworks?
=>
true
)
@spec
.
stubs
(
:version
=>
Version
.
new
(
'1.2.3'
))
end
it
'sets the project and library version'
do
settings
=
@installer
.
send
(
:custom_build_settings
)
settings
[
'CURRENT_PROJECT_VERSION'
].
should
==
'1.2.3'
settings
[
'DYLIB_CURRENT_VERSION'
].
should
==
'$(CURRENT_PROJECT_VERSION)'
end
it
'sets the library compatibility version to the major version'
do
settings
=
@installer
.
send
(
:custom_build_settings
)
settings
[
'DYLIB_COMPATIBILITY_VERSION'
].
should
==
'1'
end
it
'sets the library compatibility version to the exact version when it is less than v1 (because SemVer makes no promises)'
do
@spec
.
stubs
(
:version
=>
Version
.
new
(
'0.1.2'
))
settings
=
@installer
.
send
(
:custom_build_settings
)
settings
[
'DYLIB_COMPATIBILITY_VERSION'
].
should
==
'0.1.2'
end
describe
'with weird version numbers'
do
handles
=
->
(
version
,
project_version
,
compatibility_version
)
do
it
"handles
#{
version
}
"
do
@spec
.
stubs
(
:version
=>
Version
.
new
(
version
))
settings
=
@installer
.
send
(
:custom_build_settings
)
settings
[
'CURRENT_PROJECT_VERSION'
].
should
==
project_version
settings
[
'DYLIB_COMPATIBILITY_VERSION'
].
should
==
compatibility_version
end
end
handles
[
'1.alpha'
,
'1.0.0'
,
'1'
]
handles
[
'0.1-alpha'
,
'0.1.0'
,
'0.1.0'
]
handles
[
'1.2.3.4'
,
'1.2.3'
,
'1'
]
handles
[
'0.2.3.4'
,
'0.2.3'
,
'0.2.3'
]
handles
[
'1.alpha.2'
,
'1.0.0'
,
'1'
]
end
end
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