Sha256: 23ca047421bc9539ed54643c0604f3afa2bedb072992e646f44770ea7feb4055
Contents?: true
Size: 419 Bytes
Versions: 4
Compression:
Stored size: 419 Bytes
Contents
require 'spec_helper' describe Waffle::Encoders::Json do let(:message){{"data" => 'message data', "occured_at" => 'DateTime'}} describe '.encode' do specify{Waffle::Encoders::Json.encode(message).should == '{"data":"message data","occured_at":"DateTime"}'} end describe '.decode' do specify{Waffle::Encoders::Json.decode('{"data":"message data","occured_at":"DateTime"}').should == message} end end
Version data entries
4 entries across 4 versions & 1 rubygems