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
40968ace
Commit
40968ace
authored
Jun 24, 2015
by
Boris Bügling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fix tests."
This reverts commit 782576c4bf19421534de0b34bba1895ee6df711b.
parent
9e2b0881
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
12 deletions
+22
-12
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
header_spec.rb
spec/unit/generator/header_spec.rb
+13
-3
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
@
9793ea0f
Subproject commit
0ce7a32ea385cf641ef76bd7f5a8166c554086d3
Subproject commit
9793ea0fa86ceb9656ed768e58fa3d6db1407dd7
spec/unit/generator/header_spec.rb
View file @
40968ace
...
...
@@ -9,7 +9,7 @@ module Pod
it
'includes the imports'
do
@gen
.
imports
<<
'header.h'
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#import <
Foundation/Foundation
.h>
#import <
UIKit/UIKit
.h>
#import "header.h"
EOS
...
...
@@ -18,18 +18,28 @@ module Pod
it
'includes the module imports'
do
@gen
.
module_imports
<<
'Module'
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#import <
Foundation/Foundation
.h>
#import <
UIKit/UIKit
.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 <
Foundation/Foundation
.h>
#import <
UIKit/UIKit
.h>
EOS
end
...
...
spec/unit/generator/prefix_header_spec.rb
View file @
40968ace
...
...
@@ -13,7 +13,7 @@ module Pod
@spec
.
prefix_header_file
=
nil
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
Foundation/Foundation
.h>
#import <
UIKit/UIKit
.h>
#endif
#import "BlocksKit.h"
...
...
@@ -29,7 +29,7 @@ module Pod
end
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
Foundation/Foundation
.h>
#import <
UIKit/UIKit
.h>
#endif
#import "BlocksKit.h"
...
...
@@ -50,7 +50,7 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
Foundation/Foundation
.h>
#import <
UIKit/UIKit
.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 <
Foundation/Foundation
.h>
#import <
UIKit/UIKit
.h>
#endif
#import <BananaTree/BananaTree.h>
...
...
@@ -79,7 +79,7 @@ module Pod
@gen
.
generate
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
Foundation/Foundation
.h>
#import <
UIKit/UIKit
.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 <
Foundation/Foundation
.h>
#import <
UIKit/UIKit
.h>
#endif
#import "header.h"
...
...
@@ -103,7 +103,7 @@ module Pod
@gen
.
save_as
(
path
)
path
.
read
.
should
==
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
Foundation/Foundation
.h>
#import <
UIKit/UIKit
.h>
#endif
#import <BananaTree/BananaTree.h>
...
...
spec/unit/installer/target_installer/pod_target_installer_spec.rb
View file @
40968ace
...
...
@@ -191,7 +191,7 @@ module Pod
generated
=
@pod_target
.
prefix_header_path
.
read
expected
=
<<-
EOS
.
strip_heredoc
#ifdef __OBJC__
#import <
Foundation/Foundation
.h>
#import <
UIKit/UIKit
.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