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
b1ef0f61
Commit
b1ef0f61
authored
Jan 19, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ModuleMap] Add spec for private headers
parent
484eb3f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
module_map.rb
lib/cocoapods/generator/module_map.rb
+1
-1
module_map_spec.rb
spec/unit/generator/module_map_spec.rb
+14
-0
No files found.
lib/cocoapods/generator/module_map.rb
View file @
b1ef0f61
...
@@ -56,7 +56,7 @@ module Pod
...
@@ -56,7 +56,7 @@ module Pod
def
generate_private_header_exports
def
generate_private_header_exports
private_headers
.
reduce
(
''
)
do
|
string
,
header
|
private_headers
.
reduce
(
''
)
do
|
string
,
header
|
string
<<
%( private header "#{header}
\n"
)
string
<<
%( private header "#{header}
"\n
)
end
end
end
end
end
end
...
...
spec/unit/generator/module_map_spec.rb
View file @
b1ef0f61
...
@@ -21,5 +21,19 @@ module Pod
...
@@ -21,5 +21,19 @@ module Pod
}
}
EOS
EOS
end
end
it
'correctly adds private headers'
do
@gen
.
stubs
(
:private_headers
).
returns
([
'Private.h'
])
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
framework module BananaLib {
umbrella header "Pods-default-BananaLib-umbrella.h"
export *
module * { export * }
private header "Private.h"
}
EOS
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