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
bc44fdac
Commit
bc44fdac
authored
Aug 09, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix too long lines
parent
4d7d4e6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
17 deletions
+34
-17
integration.rb
spec/integration.rb
+34
-17
No files found.
spec/integration.rb
View file @
bc44fdac
...
@@ -66,7 +66,8 @@ CLIntegracon.configure do |c|
...
@@ -66,7 +66,8 @@ CLIntegracon.configure do |c|
end
end
# Register special handling for YAML files
# Register special handling for YAML files
c
.
has_special_handling_for
%r{Podfile
\.
lock}
,
%r{Manifest
\.
lock$}
,
%r{xcodeproj
\.
yaml$}
do
|
path
|
paths
=
[
%r{Podfile
\.
lock}
,
%r{Manifest
\.
lock$}
,
%r{xcodeproj
\.
yaml$}
]
c
.
has_special_handling_for
*
paths
do
|
path
|
if
RUBY_VERSION
<
"1.9"
if
RUBY_VERSION
<
"1.9"
nil
# CP is not sorting array derived from hashes whose order is
nil
# CP is not sorting array derived from hashes whose order is
# undefined in 1.8.7
# undefined in 1.8.7
...
@@ -120,53 +121,65 @@ describe_cli "pod" do
...
@@ -120,53 +121,65 @@ describe_cli "pod" do
# Test subspecs inheritance
# Test subspecs inheritance
describe
"Integrates a project with CocoaPods"
do
describe
"Integrates a project with CocoaPods"
do
behaves_like
cli_spec
"install_new"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_new"
,
"install --no-repo-update"
end
end
describe
"Adds a Pod to an existing installation"
do
describe
"Adds a Pod to an existing installation"
do
behaves_like
cli_spec
"install_add_pod"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_add_pod"
,
"install --no-repo-update"
end
end
describe
"Removes a Pod from an existing installation"
do
describe
"Removes a Pod from an existing installation"
do
behaves_like
cli_spec
"install_remove_pod"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_remove_pod"
,
"install --no-repo-update"
end
end
describe
"Creates an installation with multiple target definitions"
do
describe
"Creates an installation with multiple target definitions"
do
behaves_like
cli_spec
"install_multiple_targets"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_multiple_targets"
,
"install --no-repo-update"
end
end
describe
"Installs a Pod with different subspecs activated across different targets"
do
describe
"Installs a Pod with different subspecs activated across different targets"
do
behaves_like
cli_spec
"install_subspecs"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_subspecs"
,
"install --no-repo-update"
end
end
describe
"Installs a Pod with subspecs and does not duplicate the prefix header"
do
describe
"Installs a Pod with subspecs and does not duplicate the prefix header"
do
behaves_like
cli_spec
"install_subspecs_no_duplicate_prefix"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_subspecs_no_duplicate_prefix"
,
"install --no-repo-update"
end
end
describe
"Installs a Pod with a local source"
do
describe
"Installs a Pod with a local source"
do
behaves_like
cli_spec
"install_local_source"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_local_source"
,
"install --no-repo-update"
end
end
describe
"Installs a Pod with an external source"
do
describe
"Installs a Pod with an external source"
do
behaves_like
cli_spec
"install_external_source"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_external_source"
,
"install --no-repo-update"
end
end
describe
"Installs a Pod given the podspec"
do
describe
"Installs a Pod given the podspec"
do
behaves_like
cli_spec
"install_podspec"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_podspec"
,
"install --no-repo-update"
end
end
describe
"Performs an installation using a custom workspace"
do
describe
"Performs an installation using a custom workspace"
do
behaves_like
cli_spec
"install_custom_workspace"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_custom_workspace"
,
"install --no-repo-update"
end
end
describe
"Integrates a target with custom build settings"
do
describe
"Integrates a target with custom build settings"
do
behaves_like
cli_spec
"install_custom_build_configuration"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_custom_build_configuration"
,
"install --no-repo-update"
end
end
# @todo add tests for all the hooks API
# @todo add tests for all the hooks API
#
#
describe
"Runs the Podfile callbacks"
do
describe
"Runs the Podfile callbacks"
do
behaves_like
cli_spec
"install_podfile_callbacks"
,
"install --no-repo-update"
behaves_like
cli_spec
"install_podfile_callbacks"
,
"install --no-repo-update"
end
end
end
end
...
@@ -175,11 +188,13 @@ describe_cli "pod" do
...
@@ -175,11 +188,13 @@ describe_cli "pod" do
describe
"Pod update"
do
describe
"Pod update"
do
describe
"Updates an existing installation"
do
describe
"Updates an existing installation"
do
behaves_like
cli_spec
"update_all"
,
"update --no-repo-update"
behaves_like
cli_spec
"update_all"
,
"update --no-repo-update"
end
end
describe
"Updates a selected Pod in an existing installation"
do
describe
"Updates a selected Pod in an existing installation"
do
behaves_like
cli_spec
"update_selected"
,
"update Reachability --no-repo-update"
behaves_like
cli_spec
"update_selected"
,
"update Reachability --no-repo-update"
end
end
end
end
...
@@ -189,7 +204,8 @@ describe_cli "pod" do
...
@@ -189,7 +204,8 @@ describe_cli "pod" do
describe
"Pod lint"
do
describe
"Pod lint"
do
describe
"Lints a Pod"
do
describe
"Lints a Pod"
do
behaves_like
cli_spec
"spec_lint"
,
"spec lint --quick"
behaves_like
cli_spec
"spec_lint"
,
"spec lint --quick"
end
end
end
end
...
@@ -199,7 +215,8 @@ describe_cli "pod" do
...
@@ -199,7 +215,8 @@ describe_cli "pod" do
describe
"Pod init"
do
describe
"Pod init"
do
describe
"Initializes a Podfile with a single platform"
do
describe
"Initializes a Podfile with a single platform"
do
behaves_like
cli_spec
"init_single_platform"
,
"init"
behaves_like
cli_spec
"init_single_platform"
,
"init"
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