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
9e2b0881
Commit
9e2b0881
authored
Jun 24, 2015
by
Boris Bügling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests.
parent
b94a3e6d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
22 deletions
+12
-22
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
header_spec.rb
spec/unit/generator/header_spec.rb
+3
-13
prefix_header_spec.rb
spec/unit/generator/prefix_header_spec.rb
+7
-7
pod_target_installer_spec.rb
...t/installer/target_installer/pod_target_installer_spec.rb
+1
-1
No files found.
cocoapods-integration-specs
@
0ce7a32e
Subproject commit
9793ea0fa86ceb9656ed768e58fa3d6db1407dd7
Subproject commit
0ce7a32ea385cf641ef76bd7f5a8166c554086d3
spec/unit/generator/header_spec.rb
View file @
9e2b0881
...
...
@@ -9,7 +9,7 @@ module Pod
it
'includes the imports'
do
@gen
.
imports
<<
'header.h'
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
#import "header.h"
EOS
...
...
@@ -18,28 +18,18 @@ module Pod
it
'includes the module imports'
do
@gen
.
module_imports
<<
'Module'
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
@import Module
EOS
end
it
'imports UIKit in iOS platforms'
do
@gen
.
stubs
(
:platform
).
returns
(
Pod
::
Platform
.
ios
)
@gen
.
generate
.
should
.
include?
(
'#import <UIKit/UIKit.h>'
)
end
it
'imports Cocoa for OS X platforms'
do
@gen
.
stubs
(
:platform
).
returns
(
Pod
::
Platform
.
osx
)
@gen
.
generate
.
should
.
include?
(
'#import <Cocoa/Cocoa.h>'
)
end
it
'writes the header file to the disk'
do
path
=
temporary_directory
+
'Test.h'
@gen
.
save_as
(
path
)
path
.
read
.
should
==
<<-
EOS
.
strip_heredoc
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
EOS
end
...
...
spec/unit/generator/prefix_header_spec.rb
View file @
9e2b0881
...
...
@@ -13,7 +13,7 @@ module Pod
@spec
.
prefix_header_file
=
nil
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
#endif
#import "BlocksKit.h"
...
...
@@ -29,7 +29,7 @@ module Pod
end
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
#endif
#import "BlocksKit.h"
...
...
@@ -50,7 +50,7 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
#endif
#import "BlocksKit.h"
...
...
@@ -60,7 +60,7 @@ module Pod
it
"includes the contents of the specification's prefix header file"
do
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
#endif
#import <BananaTree/BananaTree.h>
...
...
@@ -79,7 +79,7 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
#endif
#import <BananaTree/BananaTree.h>
...
...
@@ -90,7 +90,7 @@ module Pod
@gen
.
imports
<<
'header.h'
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
#endif
#import "header.h"
...
...
@@ -103,7 +103,7 @@ module Pod
@gen
.
save_as
(
path
)
path
.
read
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
#endif
#import <BananaTree/BananaTree.h>
...
...
spec/unit/installer/target_installer/pod_target_installer_spec.rb
View file @
9e2b0881
...
...
@@ -191,7 +191,7 @@ module Pod
generated
=
@pod_target
.
prefix_header_path
.
read
expected
=
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
UIKit/UIKit
.h>
#import <
Foundation/Foundation
.h>
#endif
#import "BlocksKit.h"
...
...
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