diff options
Diffstat (limited to 'test/spec_request.rb')
-rw-r--r-- | test/spec_request.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/spec_request.rb b/test/spec_request.rb index c4a7400a..94de6b01 100644 --- a/test/spec_request.rb +++ b/test/spec_request.rb @@ -96,7 +96,10 @@ describe Rack::Request do req = Rack::Request.new \ Rack::MockRequest.env_for("/", "HTTP_HOST" => "localhost", "HTTP_X_FORWARDED_PROTO" => "https", "SERVER_PORT" => "80") + req.port.should.equal 443 + req = Rack::Request.new \ + Rack::MockRequest.env_for("/", "HTTP_HOST" => "localhost", "HTTP_X_FORWARDED_PROTO" => "https,https", "SERVER_PORT" => "80") req.port.should.equal 443 end |