Sha256: 4f466a37529cb4e4dec15b3de25dc7eae554fcefef689c7f9934f020a081bc98
Contents?: true
Size: 605 Bytes
Versions: 57
Compression:
Stored size: 605 Bytes
Contents
RSpec.describe Schemas::MyNamespace::MySchema do let(:key) { Schemas::MyNamespace::MySchemaKey.new(test_id: 123) } it 'should produce a tombstone with a hash' do result = described_class.tombstone({ test_id: 123 }) expect(result.payload_key).to eq(key) expect(result.to_h).to eq({ payload_key: { 'test_id' => 123 } }) end it 'should work with a record' do key = Schemas::MyNamespace::MySchemaKey.new(test_id: 123) result = described_class.tombstone(key) expect(result.payload_key).to eq(key) expect(result.to_h).to eq({ payload_key: { 'test_id' => 123 } }) end end
Version data entries
57 entries across 57 versions & 1 rubygems