Sha256: 05997a1e3091a570b42c6bdf7401685a33d455fda3eb63462224b8f48e88b068
Contents?: true
Size: 530 Bytes
Versions: 11
Compression:
Stored size: 530 Bytes
Contents
require 'spec_helper' describe WEBrick::Cookie do describe '.parse_set_cookie' do it 'includes the httponly attribute' do str = "cookie2=val2; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Path=/; Domain=.foo.com; HttpOnly" expect(WEBrick::Cookie.parse_set_cookie( str ).httponly).to be_truthy str = "cookie2=val2; Expires=Thu, 01 Jan 1970 00:00:01 GMT; Path=/; Domain=.foo.com" expect(WEBrick::Cookie.parse_set_cookie( str ).httponly).to be_falsey end end end
Version data entries
11 entries across 11 versions & 1 rubygems