Sha256: 1fbf66bae2e438155d6e0cbddad99b57be471685b11fe75f1b6c571fbe9d6b94
Contents?: true
Size: 631 Bytes
Versions: 9
Compression:
Stored size: 631 Bytes
Contents
require File.dirname(__FILE__) + "/helper" class SSLServerTest < Test::Unit::TestCase def setup @agent = WWW::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
9 entries across 9 versions & 1 rubygems