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
c2ebd3c6
Commit
c2ebd3c6
authored
Feb 15, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Integration] Move code around
parent
559b81d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
31 deletions
+30
-31
integration_2.rb
spec/integration_2.rb
+30
-31
No files found.
spec/integration_2.rb
View file @
c2ebd3c6
...
...
@@ -37,7 +37,6 @@
#-----------------------------------------------------------------------------#
# The spec helper is not required on purpose to keep those tests segregated.
# It would also create issues because it clears the temp folder before every
# requirement (`it` call).
...
...
@@ -64,35 +63,6 @@ POD_BINARY = "ruby " + ROOT.to_s + '/bin/pod' unless defined? POD_BINARY
#-----------------------------------------------------------------------------#
# @!group Description implementation
# Performs the checks for the test with the given folder using the given
# arguments.
#
# @parma [String] arguments
# The arguments to pass to the Pod executable.
#
# @parma [String] folder
# The name of the folder which contains the `before` and `after`
# subfolders.
#
def
check
(
arguments
,
folder
)
focused_check
(
arguments
,
folder
)
end
# Shortcut to focus on a test. Just comment the implmentation of #check and
# call this from the relevant test.
#
def
focused_check
(
arguments
,
folder
)
copy_files
(
folder
)
executed
=
launch_binary
(
arguments
,
folder
)
run_post_execution_actions
(
folder
)
check_with_folder
(
folder
)
if
executed
end
#--------------------------------------#
# @!group Helpers
# Copies the before subdirectory of the given tests folder in the temporary
...
...
@@ -290,9 +260,35 @@ def file_should_match(expected, produced)
end
end
#-----------------------------------------------------------------------------#
# @!group Description implementation
# Performs the checks for the test with the given folder using the given
# arguments.
#
# @parma [String] arguments
# The arguments to pass to the Pod executable.
#
# @parma [String] folder
# The name of the folder which contains the `before` and `after`
# subfolders.
#
def
check
(
arguments
,
folder
)
focused_check
(
arguments
,
folder
)
end
# Shortcut to focus on a test: Comment the implmentation of #check and
# call this from the relevant test.
#
def
focused_check
(
arguments
,
folder
)
copy_files
(
folder
)
executed
=
launch_binary
(
arguments
,
folder
)
run_post_execution_actions
(
folder
)
check_with_folder
(
folder
)
if
executed
end
#-----------------------------------------------------------------------------#
describe
"Integration take 2"
do
TMP_DIR
.
rmtree
if
TMP_DIR
.
exist?
...
...
@@ -300,6 +296,9 @@ describe "Integration take 2" do
describe
"Pod install"
do
# Test installation with no integration
# Test subspecs inheritance
describe
"Integrates a project with CocoaPods"
do
check
"install --no-update --no-doc"
,
"install_new"
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