Sha256: c5507d608a7e793b4fcf3453095f1ac5a96aa2c4f6efcdee84caf6199af4b2bf
Contents?: true
Size: 563 Bytes
Versions: 1
Compression:
Stored size: 563 Bytes
Contents
require 'jwe/zip/def' describe JWE::Zip do describe '.for' do it 'returns a class for the specified zip' do expect(JWE::Zip.for('DEF')).to eq JWE::Zip::Def end it 'raises an error for a not-implemented zip' do expect { JWE::Zip.for('BZIP2+JPG') }.to raise_error(JWE::NotImplementedError) end end end describe JWE::Zip::Def do it 'deflates and inflates to original payload' do deflate = JWE::Zip::Def.new deflated = deflate.compress("hello world") expect(deflate.decompress(deflated)).to eq "hello world" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jwe-0.1.0 | spec/jwe/zip_spec.rb |