Sha256: 11bec2c549c339431ca01d7f7b1a45383dc67f349fbd01c9dc62e3ba581b19b6
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
require 'cgi' describe "CGI::QueryExtension#server_protocol" do before(:each) do ENV['REQUEST_METHOD'], @old_request_method = "GET", ENV['REQUEST_METHOD'] @cgi = CGI.new end after(:each) do ENV['REQUEST_METHOD'] = @old_request_method end it "returns ENV['SERVER_PROTOCOL']" do old_value, ENV['SERVER_PROTOCOL'] = ENV['SERVER_PROTOCOL'], "HTTP/1.1" begin @cgi.server_protocol.should == "HTTP/1.1" ensure ENV['SERVER_PROTOCOL'] = old_value end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-cgi-1.0.0 | spec/queryextension/server_protocol_spec.rb |
rubysl-cgi-2.0.1 | spec/queryextension/server_protocol_spec.rb |
rubysl-cgi-2.0.0 | spec/queryextension/server_protocol_spec.rb |