flipp-oss / deimos

Framework to work with Kafka, Avro and ActiveRecord
Other
59 stars 22 forks source link

TestHelpers might clobber messages sent in before_each #89

Closed dorner closed 3 years ago

dorner commented 3 years ago

Currently, TestHelpers will clear out the sent messages in the test backend before each test. However, it uses RSpec's before hook to do this. Depending on how the test files are loaded, this may blow away messages that were actually sent in a test's before hook.

This should be replaced with prepend_before to make sure it doesn't exhibit this behavior.