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