Sha256: a47a502a2c83070c033937003396c854348e4cb59e9ba58660885b692b28259d
Contents?: true
Size: 778 Bytes
Versions: 4
Compression:
Stored size: 778 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'rflow')) require 'fileutils' require 'log4r' require 'rspec/collection_matchers' require 'tmpdir' I18n.enforce_available_locales = true ActiveRecord::Base.logger = Logger.new(STDOUT) ActiveRecord::Base.logger.level = 4 RSpec.configure do |config| config.before(:each) do @temp_directory_path = Dir.mktmpdir('rflow') end config.after(:each) do FileUtils.rm_rf @temp_directory_path end end def decode_avro(schema_string, bytes) schema = Avro::Schema.parse(schema_string) RFlow::Avro.decode(Avro::IO::DatumReader.new(schema, schema), bytes) end def encode_avro(schema_string, message) RFlow::Avro.encode(Avro::IO::DatumWriter.new(Avro::Schema.parse(schema_string)), message) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rflow-1.3.2 | spec/spec_helper.rb |
rflow-1.3.1 | spec/spec_helper.rb |
rflow-1.3.0 | spec/spec_helper.rb |
rflow-1.3.0a1 | spec/spec_helper.rb |