Sha256: 5153ddb6405bcae049db085a5dbc3893fadf9445a0776225a635a88c9db0312e

Contents?: true

Size: 287 Bytes

Versions: 12

Compression:

Stored size: 287 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

12 entries across 12 versions & 1 rubygems

Version Path
savon-0.6.7 spec/savon/core_ext/uri_spec.rb
savon-0.6.6 spec/savon/core_ext/uri_spec.rb
savon-0.6.5 spec/savon/core_ext/uri_spec.rb
savon-0.6.4 spec/savon/core_ext/uri_spec.rb
savon-0.6.3 spec/savon/core_ext/uri_spec.rb
savon-0.6.2 spec/savon/core_ext/uri_spec.rb
savon-0.6.1 spec/savon/core_ext/uri_spec.rb
savon-0.6.0 spec/savon/core_ext/uri_spec.rb
savon-0.5.3 spec/savon/core_ext/uri_spec.rb
savon-0.5.2 spec/savon/core_ext/uri_spec.rb
savon-0.5.1 spec/savon/core_ext/uri_spec.rb
savon-0.5.0 spec/savon/core_ext/uri_spec.rb