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
501eb182
Commit
501eb182
authored
Feb 08, 2016
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Style] Prefer array of string literal
parent
5ee56930
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
pod_variant_set_spec.rb
spec/unit/installer/analyzer/pod_variant_set_spec.rb
+21
-21
No files found.
spec/unit/installer/analyzer/pod_variant_set_spec.rb
View file @
501eb182
...
@@ -38,7 +38,7 @@ module Pod
...
@@ -38,7 +38,7 @@ module Pod
PodVariant
.
new
([
@root_spec
],
Platform
.
ios
),
PodVariant
.
new
([
@root_spec
],
Platform
.
ios
),
PodVariant
.
new
([
@root_spec
],
Platform
.
new
(
:ios
,
'7.0'
)),
PodVariant
.
new
([
@root_spec
],
Platform
.
new
(
:ios
,
'7.0'
)),
])
])
variants
.
scope_suffixes
.
values
.
should
==
[
'iOS'
,
'iOS7.0'
]
variants
.
scope_suffixes
.
values
.
should
==
%w(iOS iOS7.0)
end
end
it
'returns scopes by subspec names if they qualify'
do
it
'returns scopes by subspec names if they qualify'
do
...
@@ -55,7 +55,7 @@ module Pod
...
@@ -55,7 +55,7 @@ module Pod
PodVariant
.
new
([
@foo_subspec
],
Platform
.
ios
),
PodVariant
.
new
([
@foo_subspec
],
Platform
.
ios
),
PodVariant
.
new
([
@root_spec
,
@bar_subspec
],
Platform
.
ios
),
PodVariant
.
new
([
@root_spec
,
@bar_subspec
],
Platform
.
ios
),
])
])
variants
.
scope_suffixes
.
values
.
should
==
[
'Foo'
,
'Bar-root'
]
variants
.
scope_suffixes
.
values
.
should
==
%w(Foo Bar-root)
end
end
it
'returns scopes by platform names and subspec names if they qualify'
do
it
'returns scopes by platform names and subspec names if they qualify'
do
...
@@ -65,12 +65,12 @@ module Pod
...
@@ -65,12 +65,12 @@ module Pod
PodVariant
.
new
([
@root_spec
,
@foo_subspec
],
Platform
.
ios
),
PodVariant
.
new
([
@root_spec
,
@foo_subspec
],
Platform
.
ios
),
PodVariant
.
new
([
@root_spec
,
@bar_subspec
],
Platform
.
osx
),
PodVariant
.
new
([
@root_spec
,
@bar_subspec
],
Platform
.
osx
),
])
])
variants
.
scope_suffixes
.
values
.
should
==
[
variants
.
scope_suffixes
.
values
.
should
==
%w(
'iOS'
,
iOS
'OSX'
,
OSX
'Foo'
,
Foo
'Bar'
,
Bar
]
)
end
end
it
'returns scopes by versioned platform names and subspec names if they qualify'
do
it
'returns scopes by versioned platform names and subspec names if they qualify'
do
...
@@ -80,12 +80,12 @@ module Pod
...
@@ -80,12 +80,12 @@ module Pod
PodVariant
.
new
([
@root_spec
],
Platform
.
osx
),
PodVariant
.
new
([
@root_spec
],
Platform
.
osx
),
PodVariant
.
new
([
@root_spec
,
@bar_subspec
],
Platform
.
osx
),
PodVariant
.
new
([
@root_spec
,
@bar_subspec
],
Platform
.
osx
),
])
])
variants
.
scope_suffixes
.
values
.
should
==
[
variants
.
scope_suffixes
.
values
.
should
==
%w(
'iOS7.0'
,
iOS7.0
'iOS'
,
iOS
'OSX'
,
OSX
'Bar'
,
Bar
]
)
end
end
it
'returns scopes by built types, versioned platform names and subspec names'
do
it
'returns scopes by built types, versioned platform names and subspec names'
do
...
@@ -96,13 +96,13 @@ module Pod
...
@@ -96,13 +96,13 @@ module Pod
PodVariant
.
new
([
@root_spec
,
@foo_subspec
],
Platform
.
ios
),
PodVariant
.
new
([
@root_spec
,
@foo_subspec
],
Platform
.
ios
),
PodVariant
.
new
([
@root_spec
,
@foo_subspec
],
Platform
.
osx
,
true
),
PodVariant
.
new
([
@root_spec
,
@foo_subspec
],
Platform
.
osx
,
true
),
])
])
variants
.
scope_suffixes
.
values
.
should
==
[
variants
.
scope_suffixes
.
values
.
should
==
%w(
'library-iOS7.0'
,
library-iOS7.0
'library-iOS'
,
library-iOS
'framework'
,
framework
'Foo-library'
,
Foo-library
'Foo-framework'
,
Foo-framework
]
)
end
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