Sha256: 25b86d418ae93500a31e231e5ea5b6574a24932357a89225d19af0f1307e27ba

Contents?: true

Size: 627 Bytes

Versions: 30

Compression:

Stored size: 627 Bytes

Contents

require 'spec_helper'

describe Gem::ConfigFile do

  def gemrc_location
    File.dirname(__FILE__) + '/fixtures/gemrc'
  end

  describe ".new" do
    it "initializes ssl vars" do
      config = Gem::ConfigFile.new( [ "--config-file", gemrc_location ] )
      config.ssl_verify_mode.should eq("bob")
      config.ssl_ca_cert.should eq("steve")
      config.ssl_client_cert.should eq("dave")
    end
    it "original initialize is still called" do
      #Test by setting the backtrace value which defaults to false
      config = Gem::ConfigFile.new( [ "--backtrace" ] )
      config.backtrace.should be_true
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rubygems_ssl-client-certs-0.0.1.pre.alpha.pre.34 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.1.pre.alpha.pre.33 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.1.pre.alpha.pre.32 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.1.pre.alpha.pre.31 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.1.pre.alpha.pre.30 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.1.pre.alpha.pre.29 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.1.pre.alpha.pre.28 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.1.pre.alpha.pre.27 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.1.pre.alpha.pre.26 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.1.pre.alpha.pre.25 spec/gem_config_file_spec.rb