Commit 87d622c3 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[TargetIntegrator] Ensures that the user project is not saved when there are no…

[TargetIntegrator] Ensures that the user project is not saved when there are no user targets integrated.
parent 72502e22
...@@ -49,6 +49,12 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -49,6 +49,12 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[Samuel Giddins](https://github.com/segiddins) [Samuel Giddins](https://github.com/segiddins)
[#3586](https://github.com/CocoaPods/CocoaPods/issues/2586) [#3586](https://github.com/CocoaPods/CocoaPods/issues/2586)
* Ensures that the user project is not saved when there are no
user targets integrated.
[Samuel Giddins](https://github.com/segiddins)
[#2561](https://github.com/CocoaPods/CocoaPods/issues/2561)
[#2593](https://github.com/CocoaPods/CocoaPods/issues/2593)
## 0.34.1 ## 0.34.1
......
...@@ -34,8 +34,8 @@ module Pod ...@@ -34,8 +34,8 @@ module Pod
add_pods_library add_pods_library
add_copy_resources_script_phase add_copy_resources_script_phase
add_check_manifest_lock_script_phase add_check_manifest_lock_script_phase
user_project.save
end end
user_project.save
end end
end end
......
...@@ -97,7 +97,7 @@ module Pod ...@@ -97,7 +97,7 @@ module Pod
@target_integrator.stubs(:native_targets_to_integrate).returns([]) @target_integrator.stubs(:native_targets_to_integrate).returns([])
@target_integrator.expects(:add_pods_library).never @target_integrator.expects(:add_pods_library).never
@target_integrator.expects(:add_copy_resources_script_phase).never @target_integrator.expects(:add_copy_resources_script_phase).never
@target_integrator.expects(:save_user_project).never @target_integrator.send(:user_project).expects(:save).never
@target_integrator.integrate! @target_integrator.integrate!
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment