spec/spec_helper.rb in deimos-ruby-1.5.0.pre.beta2 vs spec/spec_helper.rb in deimos-ruby-1.6.0.pre.beta1
- old
+ new
@@ -149,11 +149,11 @@
config.mock_with(:rspec) do |mocks|
mocks.yield_receiver_to_any_instance_implementation_blocks = true
mocks.verify_partial_doubles = true
end
- config.before(:each) do |ex|
+ config.before(:each) do
Deimos.config.reset!
Deimos.configure do |deimos_config|
deimos_config.phobos_config_file = File.join(File.dirname(__FILE__), 'phobos.yml')
deimos_config.schema.path = File.join(File.expand_path(__dir__), 'schemas')
deimos_config.consumers.reraise_errors = true
@@ -161,10 +161,9 @@
deimos_config.kafka.seed_brokers = ENV['KAFKA_SEED_BROKER'] || 'localhost:9092'
deimos_config.logger = Logger.new('/dev/null')
deimos_config.logger.level = Logger::INFO
deimos_config.schema.backend = :avro_validation
end
- stub_producers_and_consumers! unless ex.metadata[:integration]
end
end
RSpec.shared_context('with DB') do
before(:all) do