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

[ResolverSpec] Add a test case for subspec dependencies where not all versions…

[ResolverSpec] Add a test case for subspec dependencies where not all versions have a subspec with the given name
parent eee04e07
...@@ -38,6 +38,17 @@ module Pod ...@@ -38,6 +38,17 @@ module Pod
#--------------------------------------# #--------------------------------------#
describe 'SpecificationProvider' do
it 'does not return nil specifications in #search_for even when a ' \
'subspec does not exist in all versions' do
@resolver.instance_variable_set(:@cached_sets, {})
possibilities = @resolver.search_for(Dependency.new('SDWebImage/Core'))
possibilities.should.not.include? nil
end
end
#--------------------------------------#
it 'resolves the specification of the podfile' do it 'resolves the specification of the podfile' do
target_definition = @podfile.target_definitions['Pods'] target_definition = @podfile.target_definitions['Pods']
specs = @resolver.resolve[target_definition] specs = @resolver.resolve[target_definition]
......
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