Sha256: 014b9890a2965d668c207026499bfd15c00d48145135f8573b24a8e3237de749

Contents?: true

Size: 544 Bytes

Versions: 3

Compression:

Stored size: 544 Bytes

Contents

require 'cgi'

describe "CGI::Cookie#path" do
  it "returns self's path" do
    cookie = CGI::Cookie.new("test-cookie")
    cookie.path.should == ""

    cookie = CGI::Cookie.new("name" => "test-cookie", "path" => "/some/path/")
    cookie.path.should == "/some/path/"
  end
end

describe "CGI::Cookie#path=" do
  it "sets self's path" do
    cookie = CGI::Cookie.new("test-cookie")
    cookie.path = "/some/path/"
    cookie.path.should == "/some/path/"

    cookie.path = "/another/path/"
    cookie.path.should == "/another/path/"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubysl-cgi-1.0.0 spec/cookie/path_spec.rb
rubysl-cgi-2.0.1 spec/cookie/path_spec.rb
rubysl-cgi-2.0.0 spec/cookie/path_spec.rb