Sha256: 60f6333a7b75c2381ad445b743289e9e2a000e90c255a1e37eea3bc5c594638d
Contents?: true
Size: 445 Bytes
Versions: 4
Compression:
Stored size: 445 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Cookie, '#encrypt' do subject { object.encrypt(box) } let(:object) { described_class.new(name, value) } let(:name) { double('name') } let(:value) { double('value') } let(:box) { double('box') } let(:cipher) { double('cipher') } before do expect(box).to receive(:encrypt).with(value).and_return(cipher) end it { should eql(described_class.new(name, cipher)) } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
majoun-0.0.4 | spec/unit/cookie/encrypt_spec.rb |
majoun-0.0.3 | spec/unit/cookie/encrypt_spec.rb |
majoun-0.0.2 | spec/unit/cookie/encrypt_spec.rb |
majoun-0.0.1 | spec/unit/cookie/encrypt_spec.rb |