Sha256: add2a689ccf44ddb75173155d126b8d79ccaf96a892faf41383f406d4a6d33ae
Contents?: true
Size: 501 Bytes
Versions: 3
Compression:
Stored size: 501 Bytes
Contents
require 'cgi' describe "CGI::QueryExtension#raw_cookie2" 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_COOKIE2']" do old_value, ENV['HTTP_COOKIE2'] = ENV['HTTP_COOKIE2'], "some_cookie=data" begin @cgi.raw_cookie2.should == "some_cookie=data" ensure ENV['HTTP_COOKIE2'] = old_value end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-cgi-1.0.0 | spec/queryextension/raw_cookie2_spec.rb |
rubysl-cgi-2.0.1 | spec/queryextension/raw_cookie2_spec.rb |
rubysl-cgi-2.0.0 | spec/queryextension/raw_cookie2_spec.rb |