Commit 0df25272 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[InstallerSpec] Add a pod that depends on AFN

parent 9093a3bc
...@@ -206,6 +206,7 @@ module Pod ...@@ -206,6 +206,7 @@ module Pod
it 'installs head pods' do it 'installs head pods' do
podfile = Podfile.new do podfile = Podfile.new do
platform :osx, '10.10' platform :osx, '10.10'
pod 'CargoBay', '2.1.0'
pod 'AFNetworking/NSURLSession', :head pod 'AFNetworking/NSURLSession', :head
end end
@installer.stubs(:podfile).returns(podfile) @installer.stubs(:podfile).returns(podfile)
...@@ -214,7 +215,7 @@ module Pod ...@@ -214,7 +215,7 @@ module Pod
Downloader::Git.any_instance.expects(:checkout_options).returns({}) Downloader::Git.any_instance.expects(:checkout_options).returns({})
@installer.prepare @installer.prepare
@installer.resolve_dependencies @installer.resolve_dependencies
@installer.send(:root_specs).map(&:version).map(&:head?).should == [true] @installer.send(:root_specs).sort_by(&:name).map(&:version).map(&:head?).should == [true, nil]
@installer.download_dependencies @installer.download_dependencies
UI.output.should.include 'HEAD based on 2.4.1' UI.output.should.include 'HEAD based on 2.4.1'
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