Sha256: a987c9856e2f8149dcd1c9ef10307e1425141f19ca44ad970ae4a4f35bdb9993

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

require 'helper'

requires_connection do

  describe ZMachine::HttpRequest do

    it "should initiate SSL/TLS on HTTPS connections" do
      ZMachine.run {
        http = ZMachine::HttpRequest.new('https://mail.google.com:443/mail/').get

        http.errback { failed(http) }
        http.callback {
          http.response_header.status.should == 302
          ZMachine.stop
        }
      }
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
z-http-request-0.2.0 spec/ssl_spec.rb
z-http-request-0.1.0 spec/ssl_spec.rb