Sha256: 7b6d968466c666949541b5f59590715322bc6ca6a2cd03da9f1df6012a3fc3fd
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
# :nodoc: all require "test/unit" require "n/server/cookie" include N class TC_Cookie < Test::Unit::TestCase # :nodoc: all def setup end def teardown end def test_initialize # bug: default path should be / cookie = Cookie.new("nsid", "24324234234234234") assert_equal("/", cookie.path) end def test_parse res = Cookie.parse("nsid=293230807; nauth=gmosx:meMXs0ifW7JBQ; koko=123&345") assert_equal("293230807", res["nsid"][0]) assert_equal("gmosx:meMXs0ifW7JBQ", res["nauth"][0]) assert_equal("123", res["koko"][0]) assert_equal("345", res["koko"][1]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.3.0 | test/n/server/tc_cookie.rb |