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
7d8ecf64
Commit
7d8ecf64
authored
Jul 16, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BridgeSupportSpec] Fix execution
parent
7d0a5c10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
bridge_support_spec.rb
spec/unit/generator/bridge_support_spec.rb
+4
-2
No files found.
spec/unit/generator/bridge_support_spec.rb
View file @
7d8ecf64
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
describe
'Pod::Generator::BridgeSupport'
do
module
Pod
describe
'Pod::Generator::BridgeSupport'
do
if
Executable
.
which
(
'gen_bridge_metadata'
).
nil?
if
Executable
.
which
(
'gen_bridge_metadata'
).
nil?
puts
' ! '
.
red
<<
"Skipping because the `gen_bridge_metadata` executable can't be found."
puts
' ! '
.
red
<<
"Skipping because the `gen_bridge_metadata` executable can't be found."
else
else
it
'generates a metadata file with the appropriate search paths'
do
it
'generates a metadata file with the appropriate search paths'
do
headers
=
%w(/some/dir/foo.h /some/dir/bar.h /some/other/dir/baz.h)
.
map
{
|
h
|
Pathname
.
new
(
h
)
}
headers
=
%w(/some/dir/foo.h /some/dir/bar.h /some/other/dir/baz.h)
.
map
{
|
h
|
Pathname
.
new
(
h
)
}
generator
=
Pod
::
Generator
::
BridgeSupport
.
new
(
headers
)
generator
=
Generator
::
BridgeSupport
.
new
(
headers
)
expected
=
[
'-c'
,
"-I '/some/dir' -I '/some/other/dir'"
,
'-o'
,
'/path/to/Pods.bridgesupport'
,
*
headers
]
expected
=
[
'-c'
,
"-I '/some/dir' -I '/some/other/dir'"
,
'-o'
,
'/path/to/Pods.bridgesupport'
,
*
headers
]
generator
.
expects
(
:gen_bridge_metadata
).
with
{
|*
command
|
command
.
map
(
&
:to_s
)
==
expected
.
map
(
&
:to_s
)
}
generator
.
expects
(
:gen_bridge_metadata
).
with
{
|*
command
|
command
.
map
(
&
:to_s
)
==
expected
.
map
(
&
:to_s
)
}
generator
.
save_as
(
Pathname
.
new
(
'/path/to/Pods.bridgesupport'
))
generator
.
save_as
(
Pathname
.
new
(
'/path/to/Pods.bridgesupport'
))
end
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