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.4.pre.alpha.pre.68 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.3 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.67 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.66 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.65 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.64 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.63 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.62 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.61 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.60 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.59 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.3.pre.alpha.pre.58 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.2 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.2.pre.alpha.pre.56 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.2.pre.alpha.pre.55 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.2.pre.alpha.pre.54 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.2.pre.alpha.pre.53 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.2.pre.alpha.pre.52 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.2.pre.alpha.pre.51 spec/gem_config_file_spec.rb
rubygems_ssl-client-certs-0.0.1.pre.alpha.pre.35 spec/gem_config_file_spec.rb