Sha256: 0a195464a6a2b38500fe820189e9e76395e4d6cad3f5649cf0033d36e22a33e2
Contents?: true
Size: 489 Bytes
Versions: 3
Compression:
Stored size: 489 Bytes
Contents
require 'cgi' describe "CGI::QueryExtension#content_type" 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['CONTENT_TYPE']" do old_value, ENV['CONTENT_TYPE'] = ENV['CONTENT_TYPE'], "text/html" begin @cgi.content_type.should == "text/html" ensure ENV['CONTENT_TYPE'] = old_value end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-cgi-1.0.0 | spec/queryextension/content_type_spec.rb |
rubysl-cgi-2.0.1 | spec/queryextension/content_type_spec.rb |
rubysl-cgi-2.0.0 | spec/queryextension/content_type_spec.rb |