spec/spec_helper.rb in rflow-components-http-0.0.6 vs spec/spec_helper.rb in rflow-components-http-0.0.7
- old
+ new
@@ -1,10 +1,10 @@
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'rflow-components-http'))
require 'logger'
RFlow.logger = Logger.new STDOUT
-
+
def decode_avro(schema_string, serialized_object)
schema = Avro::Schema.parse(schema_string)
sio = StringIO.new(serialized_object)
Avro::IO::DatumReader.new(schema, schema).read Avro::IO::BinaryDecoder.new(sio)
end