Vendor Rack 1.1
Also clean up some View stuff.
This commit is contained in:
parent
77014652a3
commit
a705709f9a
74 changed files with 3080 additions and 608 deletions
|
@ -9,7 +9,7 @@ Thread.abort_on_exception = true
|
|||
|
||||
context "Rack::Handler::WEBrick" do
|
||||
include TestRequest::Helpers
|
||||
|
||||
|
||||
setup do
|
||||
@server = WEBrick::HTTPServer.new(:Host => @host='0.0.0.0',
|
||||
:Port => @port=9202,
|
||||
|
@ -39,7 +39,7 @@ context "Rack::Handler::WEBrick" do
|
|||
|
||||
specify "should have rack headers" do
|
||||
GET("/test")
|
||||
response["rack.version"].should.equal [1,0]
|
||||
response["rack.version"].should.equal [1,1]
|
||||
response["rack.multithread"].should.be true
|
||||
response["rack.multiprocess"].should.be false
|
||||
response["rack.run_once"].should.be false
|
||||
|
@ -50,7 +50,7 @@ context "Rack::Handler::WEBrick" do
|
|||
response["REQUEST_METHOD"].should.equal "GET"
|
||||
response["SCRIPT_NAME"].should.equal "/test"
|
||||
response["REQUEST_PATH"].should.equal "/"
|
||||
response["PATH_INFO"].should.be.nil
|
||||
response["PATH_INFO"].should.be.equal ""
|
||||
response["QUERY_STRING"].should.equal ""
|
||||
response["test.postdata"].should.equal ""
|
||||
|
||||
|
@ -60,7 +60,7 @@ context "Rack::Handler::WEBrick" do
|
|||
response["REQUEST_PATH"].should.equal "/"
|
||||
response["PATH_INFO"].should.equal "/foo"
|
||||
response["QUERY_STRING"].should.equal "quux=1"
|
||||
|
||||
|
||||
GET("/test/foo%25encoding?quux=1")
|
||||
response["REQUEST_METHOD"].should.equal "GET"
|
||||
response["SCRIPT_NAME"].should.equal "/test"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue