# -*- coding: utf-8 -*- require 'spec_helper' describe Mushikago::Mitsubachi::HttpPushRequest do context 'cookieのテスト' do it 'cookiejarを受け取ったら自動的にto_jsonしてる' do cookiejar = Mushikago::Mitsubachi::Cookiejar.new cookie = Mushikago::Mitsubachi::Cookie.new('name', 'value', 'domain', 'path', true) cookiejar.add cookie request = Mushikago::Mitsubachi::HttpPushRequest.new('p', 'u', 's', 'f', 'f', :cookiejar => cookiejar) request.cookiejar.should == '[{"name":"name","value":"value","domain":"domain","path":"path","secure":true}]' end end end