Sha256: 5fe51e6d67a2a3fee9911a923181b10e78f0d7d49280d9d9890a9c95c4a998b5
Contents?: true
Size: 604 Bytes
Versions: 105
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true require_relative 'avro_base_shared' require 'deimos/schema_backends/avro_validation' RSpec.describe Deimos::SchemaBackends::AvroValidation do let(:payload) do { 'test_id' => 'some string', 'some_int' => 3 } end let(:backend) { described_class.new(schema: 'MySchema', namespace: 'com.my-namespace') } it_should_behave_like 'an Avro backend' it 'should encode and decode correctly' do results = backend.encode(payload) expect(results).to eq(payload) results = backend.decode(results) expect(results).to eq(payload) end end
Version data entries
105 entries across 105 versions & 2 rubygems