Commit 21b40063 authored by Andrea Mazzini's avatar Andrea Mazzini

Added spec and updated CHANGELOG

parent 9367f42d
...@@ -33,6 +33,10 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -33,6 +33,10 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[Samuel Ford](https://github.com/samuelwford) [Samuel Ford](https://github.com/samuelwford)
[#1042](https://github.com/CocoaPods/CocoaPods/issues/1042) [#1042](https://github.com/CocoaPods/CocoaPods/issues/1042)
* `pod update` prints the previous version of the updated pods
[Andrea Mazzini](https://github.com/andreamazz)
[#2008](https://github.com/CocoaPods/CocoaPods/issues/2008)
## 0.31.1 ## 0.31.1
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.31.1...0.31.0) [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.31.1...0.31.0)
[CocoaPods-Core](https://github.com/CocoaPods/Core/compare/0.31.1...0.31.0) [CocoaPods-Core](https://github.com/CocoaPods/Core/compare/0.31.1...0.31.0)
......
...@@ -204,6 +204,23 @@ module Pod ...@@ -204,6 +204,23 @@ module Pod
@installer.installed_specs.should == [spec] @installer.installed_specs.should == [spec]
end end
it "prints the previous version of a pod while updating the spec" do
spec = Spec.new
spec.name = 'RestKit'
spec.version = '2.0'
manifest = Lockfile.new({})
manifest.stubs(:version).with('RestKit').returns('1.0')
@installer.sandbox.stubs(:manifest).returns(manifest)
# Lockfile.any_instance.stubs(:version).with('RestKit').returns('1.0')
@installer.stubs(:root_specs).returns([spec])
sandbox_state = Installer::Analyzer::SpecsState.new
sandbox_state.changed << 'RestKit'
@installer.stubs(:sandbox_state).returns(sandbox_state)
@installer.expects(:install_source_of_pod).with('RestKit')
@installer.send(:install_pod_sources)
UI.output.should.include 'was 1.0'
end
#--------------------------------------# #--------------------------------------#
describe "#clean" do describe "#clean" do
......
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