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
bc5f8f42
Commit
bc5f8f42
authored
Apr 07, 2013
by
Ullrich Schäfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding some specs to target_integrator_spec.rb
parent
52775a47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
target_integrator_spec.rb
...staller/user_project_integrator/target_integrator_spec.rb
+21
-0
No files found.
spec/unit/installer/user_project_integrator/target_integrator_spec.rb
View file @
bc5f8f42
...
@@ -80,6 +80,27 @@ module Pod
...
@@ -80,6 +80,27 @@ module Pod
phase
.
shell_script
.
strip
.
should
==
"
\"
${SRCROOT}/../Pods/Pods-resources.sh
\"
"
phase
.
shell_script
.
strip
.
should
==
"
\"
${SRCROOT}/../Pods/Pods-resources.sh
\"
"
end
end
it
'adds a Check Manifest.lock build phase to each target'
do
target
=
@target_integrator
.
targets
.
first
phase
=
target
.
shell_script_build_phases
.
find
{
|
bp
|
bp
.
name
==
"Check Pods Manifest.lock"
}
phase
.
shell_script
.
should
==
<<-
EOS
diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
if [[ $? != 0 ]] ; then
cat << EOM
Podfile.lock and Manifest.lock are not in sync.
You might need to run a
\`
pod install
\`
.
EOM
exit 1
fi
EOS
end
it
'adds the Check Manifest.lock build phase as the first build phase'
do
target
=
@target_integrator
.
targets
.
first
phase
=
target
.
build_phases
.
find
{
|
bp
|
bp
.
name
==
"Check Pods Manifest.lock"
}
target
.
build_phases
.
first
.
should
.
equal?
phase
end
end
end
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