Sha256: 35032a78923101f9fe6efb01318e621e981256995c8004eaeb19442d1d42327c
Contents?: true
Size: 563 Bytes
Versions: 2
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jwe-0.2.0 | spec/jwe/zip_spec.rb |
jwe-0.1.1 | spec/jwe/zip_spec.rb |