salsify / avromatic

Generate Ruby models from Avro schemas
MIT License
89 stars 17 forks source link

Ensure schema registry caches are cleared between tests #138

Closed jturkel closed 3 years ago

jturkel commented 3 years ago

This PR updates the RSpec integration to clear schema registry caches are cleared between tests which ensures consistent ID mappings with the AvroSchemaRegistry::FakeServer. As part of this fix I added an Avromatic.build_schema_registry! method for consistency with the existing Avromatic.build_messaging! method.