Sha256: 7592851b4e658a86d2ef28aaf58a044ae2675603cd9af7a4b0274bda34b9acbb

Contents?: true

Size: 543 Bytes

Versions: 11

Compression:

Stored size: 543 Bytes

Contents

require 'spec_helper'
require 'uri'

describe Gem::RemoteFetcher do

  def create_fetcher()
    fetcher = subject
    fetcher
  end

  describe "#https?" do
    it "returns true when protocol is https" do
      fetcher = create_fetcher()
      fetcher.https?(URI("https://www.example.com")).should be_true
    end

    it "returns false when protocol is http" do
      fetcher = create_fetcher()
      fetcher.https?(URI("http://www.example.com")).should be_false
    end
  end

  describe "#configure_connection_for_https" do
    
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

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