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

Version Path
deimos-ruby-1.24.2 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.24.1 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.24.0 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.23.3 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.23.2 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.23.1.pre.beta6 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.23.1.pre.beta5 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.23.1.pre.beta4 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.23.1.pre.beta3 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.23.1.pre.beta2 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.23.1.pre.beta1 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.23.0 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.22.5 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.22.4 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.22.3 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.22.2 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.22.1 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.22 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.20.1 spec/schema_backends/avro_validation_spec.rb
deimos-ruby-1.20.0 spec/schema_backends/avro_validation_spec.rb