lib/deimos/test_helpers.rb in deimos-ruby-1.8.7 vs lib/deimos/test_helpers.rb in deimos-ruby-1.9.0
- old
+ new
@@ -32,10 +32,10 @@
d_config.schema.backend = Deimos.schema_backend_class.mock_backend
d_config.producers.backend = :test
end
end
- config.before(:each) do
+ config.prepend_before(:each) do
client = double('client').as_null_object
allow(client).to receive(:time) do |*_args, &block|
block.call
end
Deimos::Backends::Test.sent_messages.clear