Sha256: 4c8cf85642ba7a2992adc43fce26aac2f8ecbc04c93f85a921346f1d54536b50
Contents?: true
Size: 513 Bytes
Versions: 3
Compression:
Stored size: 513 Bytes
Contents
require 'cgi' describe "CGI::QueryExtension#server_software" 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_SOFTWARE']" do old_value, ENV['SERVER_SOFTWARE'] = ENV['SERVER_SOFTWARE'], "Server/1.0.0" begin @cgi.server_software.should == "Server/1.0.0" ensure ENV['SERVER_SOFTWARE'] = 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_software_spec.rb |
rubysl-cgi-2.0.1 | spec/queryextension/server_software_spec.rb |
rubysl-cgi-2.0.0 | spec/queryextension/server_software_spec.rb |