1 require File.dirname(__FILE__) + '/../../../spec_helper'
4 describe "CGI::QueryExtension#gateway_interface" do
6 ENV['REQUEST_METHOD'], @old_request_method = "GET", ENV['REQUEST_METHOD']
11 ENV['REQUEST_METHOD'] = @old_request_method
14 it "returns ENV['GATEWAY_INTERFACE']" do
15 old_value, ENV['GATEWAY_INTERFACE'] = ENV['GATEWAY_INTERFACE'], "CGI/1.1"
17 @cgi.gateway_interface.should == "CGI/1.1"
19 ENV['GATEWAY_INTERFACE'] = old_value