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
967b8aba
Commit
967b8aba
authored
Apr 27, 2012
by
Francis Chong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement unit test for dummy source
parent
a1717fb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
dummy_source_spec.rb
spec/unit/generator/dummy_source_spec.rb
+25
-1
No files found.
spec/unit/generator/dummy_source_spec.rb
View file @
967b8aba
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
describe
Pod
::
Generator
::
DummySource
do
it
"generates a dummy sourcefile with the appropriate class"
extend
SpecHelper
::
TemporaryDirectory
before
do
setup_temporary_directory
end
after
do
teardown_temporary_directory
end
def
do_install!
@installer
.
install!
(
@pods
,
@sandbox
)
end
it
"generates a dummy sourcefile with the appropriate class"
do
generator
=
Pod
::
Generator
::
DummySource
.
new
(
"Pods"
)
file
=
temporary_directory
+
'PodsDummy.m'
generator
.
save_as
(
file
)
file
.
read
.
should
==
<<-
EOS
@interface PodsDummy : NSObject
@end
@implementation PodsDummy
@end
EOS
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