spec/schema_backends/base_spec.rb in deimos-ruby-1.10.0 vs spec/schema_backends/base_spec.rb in deimos-ruby-1.10.1

- old
+ new

@@ -24,6 +24,10 @@ it 'should decode a passed schema' do expect(backend).to receive(:decode_payload).with(payload, schema: 'schema2') backend.decode(payload, schema: 'schema2') end + it 'should return nil if passed nil' do + expect(backend.decode(nil, schema: 'schema2')).to be_nil + end + end