Sha256: 3899be122ceb415450722a2c552e06405e1617f1a3c1926ff6bb7834f836c207
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
require 'test_helper' require 'socket' class TestJubileeServer < MiniTest::Unit::TestCase def setup end def teardown @client.close sleep 0.1 @server.stop end def test_hijack_supported skip "not valid" @valid_post = "POST / HTTP/1.1\r\nHost: test.com\r\nContent-Type: text/plain\r\nContent-Length: 5\r\n\r\nhello" @host, @port = "localhost", 8080 config = Jubilee::Configuration.new(rackup: File.expand_path("../../apps/hijack.ru", __FILE__), instances: 1) @server = Jubilee::Server.new(config.options) @server.start @client = TCPSocket.new @host, @port @client << @valid_post assert @jijack end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jubilee-3.0.0.beta2-java | test/jubilee/test_hijack.rb |
jubilee-2.1.0.rc1-java | test/jubilee/test_hijack.rb |
jubilee-2.1.0.beta-java | test/jubilee/test_hijack.rb |