Sha256: a7eed46a875801af2024c1ef2d7ecd042a7b7ab172620ec7668ef99abe43f30c

Contents?: true

Size: 431 Bytes

Versions: 15

Compression:

Stored size: 431 Bytes

Contents

require 'helper'

requires_connection do

  describe EventMachine::HttpRequest do

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

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

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
em-http-request-1.1.6 spec/ssl_spec.rb
em-http-request-1.1.5 spec/ssl_spec.rb
em-http-request-1.1.4 spec/ssl_spec.rb
em-http-request-1.1.3 spec/ssl_spec.rb
em-http-request-1.1.2 spec/ssl_spec.rb
em-http-request-1.1.1 spec/ssl_spec.rb
em-http-request-1.1.0 spec/ssl_spec.rb
em-http-request-1.0.3 spec/ssl_spec.rb
em-http-request-1.0.2 spec/ssl_spec.rb
em-http-request-1.0.1 spec/ssl_spec.rb
em-http-request-1.0.0 spec/ssl_spec.rb
em-http-request-1.0.0.beta.4 spec/ssl_spec.rb
em-http-request-1.0.0.beta.3 spec/ssl_spec.rb
em-http-request-1.0.0.beta.2 spec/ssl_spec.rb
em-http-request-1.0.0.beta.1 spec/ssl_spec.rb