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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
bridge_support_spec.rb
spec/unit/generator/bridge_support_spec.rb
+12
-10
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
if
Executable
.
which
(
'gen_bridge_metadata'
).
nil?
describe
'Pod::Generator::BridgeSupport'
do
puts
' ! '
.
red
<<
"Skipping because the `gen_bridge_metadata` executable can't be found."
if
Executable
.
which
(
'gen_bridge_metadata'
).
nil?
else
puts
' ! '
.
red
<<
"Skipping because the `gen_bridge_metadata` executable can't be found."
it
'generates a metadata file with the appropriate search paths'
do
else
headers
=
%w(/some/dir/foo.h /some/dir/bar.h /some/other/dir/baz.h)
.
map
{
|
h
|
Pathname
.
new
(
h
)
}
it
'generates a metadata file with the appropriate search paths'
do
generator
=
Pod
::
Generator
::
BridgeSupport
.
new
(
headers
)
headers
=
%w(/some/dir/foo.h /some/dir/bar.h /some/other/dir/baz.h)
.
map
{
|
h
|
Pathname
.
new
(
h
)
}
expected
=
[
'-c'
,
"-I '/some/dir' -I '/some/other/dir'"
,
'-o'
,
'/path/to/Pods.bridgesupport'
,
*
headers
]
generator
=
Generator
::
BridgeSupport
.
new
(
headers
)
generator
.
expects
(
:gen_bridge_metadata
).
with
{
|*
command
|
command
.
map
(
&
:to_s
)
==
expected
.
map
(
&
:to_s
)
}
expected
=
[
'-c'
,
"-I '/some/dir' -I '/some/other/dir'"
,
'-o'
,
'/path/to/Pods.bridgesupport'
,
*
headers
]
generator
.
save_as
(
Pathname
.
new
(
'/path/to/Pods.bridgesupport'
))
generator
.
expects
(
:gen_bridge_metadata
).
with
{
|*
command
|
command
.
map
(
&
:to_s
)
==
expected
.
map
(
&
:to_s
)
}
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