Commit ba547411 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[ResolverSpec] Add coverage for unsatisfiable Podfile dependencies

parent c895ed56
......@@ -18,7 +18,7 @@ GIT
GIT
remote: https://github.com/CocoaPods/Molinillo.git
revision: 9e8ae0cc7fe3534b64555a4a4312c3c741824d2a
revision: ea6ce955f47384b4e28610646bd7e84b61da1ac8
branch: master
specs:
molinillo (0.0.1)
......
......@@ -274,6 +274,17 @@ module Pod
e.message.should.match(/`AFNetworking \(> 2\)` required by `Podfile`/)
end
it 'raises if no such version of a dependency exists' do
podfile = Podfile.new do
platform :ios
pod 'AFNetworking', '3.0.1'
end
resolver = Resolver.new(config.sandbox, podfile, [], SourcesManager.all)
e = lambda { resolver.resolve }.should.raise Informative
e.message.should.match(/Unable to satisfy the following requirements/)
e.message.should.match(/`AFNetworking \(= 3.0.1\)` required by `Podfile`/)
end
it 'takes into account locked dependencies' do
podfile = Podfile.new do
platform :ios
......
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