Sha256: e6b20ddfabbcb2d3689a9e206d899b5e59753ae6291b4cf260bc3a5c0f470dc7
Contents?: true
Size: 785 Bytes
Versions: 1
Compression:
Stored size: 785 Bytes
Contents
require 'spec_helper' require 'rflow/components/raw' class RFlow class Message class Data describe 'Raw Avro Schema' do let(:schema) { Configuration.available_data_types['RFlow::Message::Data::Raw']['avro'] } it "should load the schema" do schema.should_not be_nil end it "should encode and decode an object" do raw = {'raw' => Array.new(256) { rand(256) }.pack('c*')} expect { encode_avro(schema, raw) }.to_not raise_error encoded = encode_avro(schema, raw) expect { decode_avro(schema, encoded) }.to_not raise_error decoded = decode_avro(schema, encoded) decoded.should == raw decoded['raw'].should == raw['raw'] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rflow-1.0.0a2 | spec/rflow/message/data/raw_spec.rb |