Sha256: 64c529c0c186ab125dd0b486c840ebf028e092e3850f99992158e6a05b109264

Contents?: true

Size: 503 Bytes

Versions: 28

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

describe Deimos::AvroDataDecoder do

  let(:decoder) do
    decoder = described_class.new(schema: 'MySchema',
                                  namespace: 'com.my-namespace')
    allow(decoder).to(receive(:decode)) { |payload| payload }
    decoder
  end

  it 'should decode a key' do
    # reset stub from TestHelpers
    allow(described_class).to receive(:new).and_call_original
    expect(decoder.decode_key({ 'test_id' => '123' }, 'test_id')).to eq('123')
  end

end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
deimos-ruby-1.3.0.pre.beta5 spec/avro_data_decoder_spec.rb
deimos-ruby-1.4.0.pre.beta7 spec/avro_data_decoder_spec.rb
deimos-ruby-1.4.0.pre.beta6 spec/avro_data_decoder_spec.rb
deimos-ruby-1.4.0.pre.beta5 spec/avro_data_decoder_spec.rb
deimos-ruby-1.3.0.pre.beta4 spec/avro_data_decoder_spec.rb
deimos-ruby-1.4.0.pre.beta4 spec/avro_data_decoder_spec.rb
deimos-ruby-1.4.0.pre.beta3 spec/avro_data_decoder_spec.rb
deimos-ruby-1.3.0.pre.beta3 spec/avro_data_decoder_spec.rb
deimos-ruby-1.4.0.pre.beta2 spec/avro_data_decoder_spec.rb
deimos-ruby-1.4.0.pre.beta1 spec/avro_data_decoder_spec.rb
deimos-ruby-1.3.0.pre.beta2 spec/avro_data_decoder_spec.rb
deimos-ruby-1.3.0.pre.beta1 spec/avro_data_decoder_spec.rb
deimos-ruby-1.2.0.pre.beta1 spec/avro_data_decoder_spec.rb
deimos-ruby-1.1.0.pre.beta2 spec/avro_data_decoder_spec.rb
deimos-ruby-1.1.0.pre.beta1 spec/avro_data_decoder_spec.rb
deimos-ruby-1.0.0 spec/avro_data_decoder_spec.rb
deimos-ruby-1.0.0.pre.beta26 spec/avro_data_decoder_spec.rb
deimos-ruby-1.0.0.pre.beta25 spec/avro_data_decoder_spec.rb
deimos-ruby-1.0.0.pre.beta24 spec/avro_data_decoder_spec.rb
deimos-ruby-1.0.0.pre.beta23 spec/avro_data_decoder_spec.rb