Sha256: 9a4511a3566d0b3c2162000945ef3a907a9f4ae899eb695b8e902c7db6564c60
Contents?: true
Size: 653 Bytes
Versions: 3
Compression:
Stored size: 653 Bytes
Contents
require 'cgi' describe "CGI::QueryExtension#accept" 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['HTTP_ACCEPT']" do old_value, ENV['HTTP_ACCEPT'] = ENV['HTTP_ACCEPT'], "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" begin @cgi.accept.should == "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" ensure ENV['HTTP_ACCEPT'] = old_value end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-cgi-1.0.0 | spec/queryextension/accept_spec.rb |
rubysl-cgi-2.0.1 | spec/queryextension/accept_spec.rb |
rubysl-cgi-2.0.0 | spec/queryextension/accept_spec.rb |