Sha256: 1e3b5695656561cfc8e6aef499852f1a19f8ce4c7cdf566dd2ca329308790ede
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "helper")) class SSLServerTest < Test::Unit::TestCase def setup @agent = Mechanize.new end def test_ssl_request non_ssl_page = @agent.get("http://localhost/form_test.html") ssl_page = @agent.get("https://localhost/form_test.html") assert_equal(non_ssl_page.body.length, ssl_page.body.length) end def test_ssl_request_verify non_ssl_page = @agent.get("http://localhost/form_test.html") @agent.ca_file = 'data/server.crt' ssl_page = @agent.get("https://localhost/form_test.html") assert_equal(non_ssl_page.body.length, ssl_page.body.length) end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
kitamomonga-mechanize-0.9.3.20090724215219 | test/test_ssl_server.rb |
tenderlove-mechanize-0.9.3.20090911221705 | test/test_ssl_server.rb |