Sha256: b4f6b3d20cd3a60c1198d0992a3df0c3f0a47de095573b25229967a70e00e523

Contents?: true

Size: 288 Bytes

Versions: 16

Compression:

Stored size: 288 Bytes

Contents

require "spec_helper"

describe URI::HTTP do

  describe "ssl?" do
    it "returns true for https URI's" do
      URI("https://example.com").ssl?.should be_true
    end

    it "returns false for non-https URI's" do
      URI("http://example.com").ssl?.should be_false
    end
  end

end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
savon-xaop-0.7.2.7 spec/savon/core_ext/uri_spec.rb
savon-xaop-0.7.2.6 spec/savon/core_ext/uri_spec.rb
savon-xaop-0.7.2.5 spec/savon/core_ext/uri_spec.rb
johnreitano-savon-0.7.2.1 spec/savon/core_ext/uri_spec.rb
savon-xaop-0.7.2.4 spec/savon/core_ext/uri_spec.rb
savon-xaop-0.7.2.3 spec/savon/core_ext/uri_spec.rb
savon-xaop-0.7.2.2 spec/savon/core_ext/uri_spec.rb
savon-xaop-0.7.2.1 spec/savon/core_ext/uri_spec.rb
savon-0.7.5 spec/savon/core_ext/uri_spec.rb
savon-0.7.4 spec/savon/core_ext/uri_spec.rb
savon-0.7.3 spec/savon/core_ext/uri_spec.rb
savon-0.7.2 spec/savon/core_ext/uri_spec.rb
savon-0.7.1 spec/savon/core_ext/uri_spec.rb
savon-0.7.0 spec/savon/core_ext/uri_spec.rb
julianmorrison-savon-0.6.8 spec/savon/core_ext/uri_spec.rb
savon-0.6.8 spec/savon/core_ext/uri_spec.rb