Sha256: 2a2e62d4e69af6516b227f7ee97de6357a9cd377efb90248c86c1eb57ec1b480

Contents?: true

Size: 448 Bytes

Versions: 4

Compression:

Stored size: 448 Bytes

Contents

require 'spec_helper'

describe Waffle::Encoders::Marshal do
  let(:message){{:data => 'message data', :occured_at => 'DateTime'}}
  let(:marshalized_message){Marshal.dump(message)}
  describe '.encode' do
    specify do
      Waffle::Encoders::Marshal.encode(message).should == marshalized_message
    end
  end

  describe '.decode' do
    specify do
      Waffle::Encoders::Marshal.decode(marshalized_message).should == message
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
waffle-0.6.0 spec/waffle/encoders/marshal_spec.rb
waffle-0.5.1 spec/waffle/encoders/marshal_spec.rb
waffle-0.5.0 spec/waffle/encoders/marshal_spec.rb
waffle-0.4.0 spec/waffle/encoders/marshal_spec.rb