spec/validator_spec.rb in cocoapods-stats-0.6.1 vs spec/validator_spec.rb in cocoapods-stats-0.6.2
- old
+ new
@@ -5,9 +5,16 @@
it 'returns no when given a nil' do
subject = CocoaPodsStats::SpecsRepoValidator.new
subject.should.not.validates?(nil)
end
+ it 'returns no when given a source with no url' do
+ source = mock(:url => nil)
+
+ subject = CocoaPodsStats::SpecsRepoValidator.new
+ subject.should.not.validates?(source)
+ end
+
it 'returns no when given a master repo that is not cocoapods/specs' do
sources = mock
sources.stubs(:url).returns('CocoaPods/NotSpecs.git')
subject = CocoaPodsStats::SpecsRepoValidator.new