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
2f76d351
Commit
2f76d351
authored
Feb 24, 2015
by
Boris Bügling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specs] Lint as framework automatically.
parent
752cab9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
validator_spec.rb
spec/unit/validator_spec.rb
+34
-0
No files found.
spec/unit/validator_spec.rb
View file @
2f76d351
...
...
@@ -442,6 +442,40 @@ module Pod
end
end
describe
'frameworks'
do
before
do
@validator
=
Validator
.
new
(
podspec_path
,
SourcesManager
.
master
.
map
(
&
:url
))
end
def
setup_validator
@validator
.
stubs
(
:validate_url
)
@validator
.
stubs
(
:validate_screenshots
)
@validator
.
stubs
(
:check_file_patterns
)
Installer
.
any_instance
.
stubs
(
:install!
)
Installer
.
any_instance
.
stubs
(
:aggregate_targets
).
returns
([])
end
it
'lints as a framework if specified'
do
@validator
.
use_frameworks
=
true
setup_validator
@validator
.
expects
(
:podfile_from_spec
).
with
(
:osx
,
nil
,
true
).
once
@validator
.
expects
(
:podfile_from_spec
).
with
(
:ios
,
nil
,
true
).
once
@validator
.
send
(
:perform_extensive_analysis
,
@validator
.
spec
)
end
it
'lint as a static library if specified'
do
@validator
.
use_frameworks
=
false
setup_validator
@validator
.
expects
(
:podfile_from_spec
).
with
(
:osx
,
nil
,
false
).
once
@validator
.
expects
(
:podfile_from_spec
).
with
(
:ios
,
nil
,
false
).
once
@validator
.
send
(
:perform_extensive_analysis
,
@validator
.
spec
)
end
end
describe
'swift validation'
do
def
test_swiftpod
podspec
=
stub_podspec
(
/.*source_files.*/
,
'"source_files": "*.swift",'
)
...
...
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