Sha256: 5a58151d4b45bfe3aeb7b934a15a35e870848e477198bf4c3a71b0a770d2ec76

Contents?: true

Size: 805 Bytes

Versions: 6

Compression:

Stored size: 805 Bytes

Contents

require File.expand_path('../spec_helper', __FILE__)

describe CocoaPodsStats::SpecsRepoValidator do
  describe 'validates' do
    it 'returns no when given a nil' do
      subject = CocoaPodsStats::SpecsRepoValidator.new
      subject.should.not.validates?(nil)
    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
      subject.should.not.validates?(sources)
    end

    it 'returns yes when given a master repo that is cocoapods/specs' do
      sources = mock
      sources.stubs(:url).returns('CocoaPods/Specs.git')

      subject = CocoaPodsStats::SpecsRepoValidator.new
      subject.should.validates?(sources)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cocoapods-stats-0.6.1 spec/validator_spec.rb
cocoapods-stats-0.6.0 spec/validator_spec.rb
cocoapods-stats-0.5.3 spec/validator_spec.rb
cocoapods-stats-0.5.2 spec/validator_spec.rb
cocoapods-stats-0.5.1 spec/validator_spec.rb
cocoapods-stats-0.5.0 spec/validator_spec.rb