Sha256: f67c97e2b93a32dc7bc58cc1683400179e14af7f54e0bf42a582754aa8f1ce6c

Contents?: true

Size: 533 Bytes

Versions: 16

Compression:

Stored size: 533 Bytes

Contents

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

describe CocoaPodsStats::OptOutValidator do
  describe 'validates' do
    it 'returns no when there is an env var' do
      ENV['COCOAPODS_DISABLE_STATS'] = 'true'

      subject = CocoaPodsStats::OptOutValidator.new
      subject.should.not.validates
    end

    it 'returns yes when given a master repo that is cocoapods/specs' do
      ENV['COCOAPODS_DISABLE_STATS'] = nil

      subject = CocoaPodsStats::OptOutValidator.new
      subject.should.validates
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/cocoapods-stats-1.1.0/spec/env_validator_spec.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/cocoapods-stats-1.1.0/spec/env_validator_spec.rb
cocoapods-stats-1.1.0 spec/env_validator_spec.rb
cocoapods-stats-1.0.0 spec/env_validator_spec.rb
cocoapods-stats-1.0.0.rc.1 spec/env_validator_spec.rb
cocoapods-stats-1.0.0.beta.4 spec/env_validator_spec.rb
cocoapods-stats-1.0.0.beta.3 spec/env_validator_spec.rb
cocoapods-stats-1.0.0.beta.2 spec/env_validator_spec.rb
cocoapods-stats-1.0.0.beta.1 spec/env_validator_spec.rb
cocoapods-stats-0.6.2 spec/env_validator_spec.rb
cocoapods-stats-0.6.1 spec/env_validator_spec.rb
cocoapods-stats-0.6.0 spec/env_validator_spec.rb
cocoapods-stats-0.5.3 spec/env_validator_spec.rb
cocoapods-stats-0.5.2 spec/env_validator_spec.rb
cocoapods-stats-0.5.1 spec/env_validator_spec.rb
cocoapods-stats-0.5.0 spec/env_validator_spec.rb