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