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
13f2cd50
Commit
13f2cd50
authored
May 11, 2018
by
Takeru Chuganji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for modular header + header_dir + static lib case
parent
0ec2185c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
pod_target_installer_spec.rb
...xcode/pods_project_generator/pod_target_installer_spec.rb
+29
-0
No files found.
spec/unit/installer/xcode/pods_project_generator/pod_target_installer_spec.rb
View file @
13f2cd50
...
@@ -261,6 +261,35 @@ module Pod
...
@@ -261,6 +261,35 @@ module Pod
content
.
should
.
not
=~
/"CoconutTestHeader.h"/
content
.
should
.
not
=~
/"CoconutTestHeader.h"/
end
end
it
'uses header_dir to umbrella header imports'
do
@coconut_pod_target
.
file_accessors
.
first
.
spec_consumer
.
stubs
(
:header_dir
).
returns
(
'Coconut'
)
@coconut_pod_target
.
stubs
(
:requires_frameworks?
).
returns
(
false
)
@coconut_pod_target
.
stubs
(
:defines_module?
).
returns
(
true
)
@installer
.
install!
content
=
@coconut_pod_target
.
umbrella_header_path
.
read
content
.
should
=~
%r{"Coconut/Coconut.h"}
end
it
'uses header_dir and header_mappings_dir to umbrella header imports'
do
@coconut_pod_target
.
file_accessors
.
first
.
spec_consumer
.
stubs
(
:header_dir
).
returns
(
'Coconut2'
)
@coconut_pod_target
.
file_accessors
.
first
.
spec_consumer
.
stubs
(
:header_mappings_dir
).
returns
(
'Classes'
)
@coconut_pod_target
.
stubs
(
:requires_frameworks?
).
returns
(
false
)
@coconut_pod_target
.
stubs
(
:defines_module?
).
returns
(
true
)
@installer
.
install!
content
=
@coconut_pod_target
.
umbrella_header_path
.
read
content
.
should
=~
%r{"Coconut2/Coconut.h"}
end
it
'does not use header_dir to umbrella header imports'
do
@coconut_pod_target
.
file_accessors
.
first
.
spec_consumer
.
stubs
(
:header_dir
).
returns
(
'Coconut'
)
@coconut_pod_target
.
stubs
(
:requires_frameworks?
).
returns
(
true
)
@coconut_pod_target
.
stubs
(
:defines_module?
).
returns
(
true
)
@installer
.
install!
content
=
@coconut_pod_target
.
umbrella_header_path
.
read
content
.
should
.
not
=~
%r{"Coconut/Coconut.h"}
content
.
should
=~
/"Coconut.h"/
end
it
'adds test xcconfig file reference for test resource bundle targets'
do
it
'adds test xcconfig file reference for test resource bundle targets'
do
@coconut_spec
.
test_specs
.
first
.
resource_bundle
=
{
'CoconutLibTestResources'
=>
[
'Model.xcdatamodeld'
]
}
@coconut_spec
.
test_specs
.
first
.
resource_bundle
=
{
'CoconutLibTestResources'
=>
[
'Model.xcdatamodeld'
]
}
installation_result
=
@installer
.
install!
installation_result
=
@installer
.
install!
...
...
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